SQL for views

Michael Shapiro <[email protected]> Thu, 17 Oct 2019 12:44:44 -0500
Newsgroups gmane.comp.db.postgresql.pgadmin
Message-ID <CAGCvxeYqRdnb9bHkHYqESYyj9ub23DcKx93nzNwPSTPhVUJ0PQ@mail.gmail.com>
How does PgAdmin extract the sql for a view?

If I run
   select definition from pg_catalog.pg_views where viewname = 'xxx' and
schemaname='yyy'

the tables in the FROM clauses may or may not be fully qualified, depending
on the current search_path. If the search_path includes the schema for a
table, that table will not be fully qualified

PgAdmin seems to be able to always make sure that the tables are fully
qualified. How does it do that?