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?

Reply via email to