Re: SQL text of view

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL text of view
Date: 2003-11-18 22:22:37
Message-ID: bpe63d$ce3$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2003-11-18 22:31:36 Re: unix_socket_directory not fully recognized by pg_ctl?
Previous Message Bruce Momjian 2003-11-18 21:53:23 Re: 7.4RC2 vs 7.4