Re: SQL text of view - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: SQL text of view
Date
Msg-id bpe63d$ce3$1@sea.gmane.org
Whole thread Raw
In response to SQL text of view  ("Yury Shvetsov" <rmtech@marbella.net>)
List pgsql-general
Yury Shvetsov schrieb:
> Hi.
>
> Where is the SQL text of view stored in the database?
> I mean the text like "SELECT the_field FROM the_table".
> I can found the function's text in "pg_proc.proerc", but can't find the same
> for a view.
>
> Yury Shvetsov.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>
What about

SELECT definition
FROM pg_views
WHERE viewname = <name of view>

Thomas


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 7.4RC2 vs 7.4
Next
From: Oliver Elphick
Date:
Subject: Re: unix_socket_directory not fully recognized by pg_ctl?