Re: select view definition from pg_views feature request - Mailing list pgsql-general

From Tom Lane
Subject Re: select view definition from pg_views feature request
Date
Msg-id 31367.1572815723@sss.pgh.pa.us
Whole thread Raw
In response to select view definition from pg_views feature request  (Michael Shapiro <mshapiro51@gmail.com>)
Responses Re: select view definition from pg_views feature request
Re: select view definition from pg_views feature request
List pgsql-general
Michael Shapiro <mshapiro51@gmail.com> writes:
> It seems that the definition of a view from pg_catalog.pg_views does not
> qualify the tables used in the view if the tables are in the current search
> path.

> Is it possible to either have the definition always qualify all tables
> independent of the search_path (or else provide a new column that does
> that)?

Why don't you just change the search path to empty before selecting?

            regards, tom lane



pgsql-general by date:

Previous
From: Michael Shapiro
Date:
Subject: select view definition from pg_views feature request
Next
From: Steve Baldwin
Date:
Subject: explain plan difference