From: | Christoph Haller <ch(at)rodos(dot)fzk(dot)de> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Cc: | LBerezhny(at)DevIS(dot)com |
Subject: | Re: pg_views |
Date: | 2003-02-04 09:02:11 |
Message-ID: | 3E3F8192.376AA9CB@rodos.fzk.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
>
> I'm wondering if PostgreSQL actually reparses the view definition on
> each invocation or if it stores the required information in some
> accessible place.
>
The documentation says:
Whenever a query against a view (i.e. a virtual table) is made, the
rewrite system rewrites the user's query to a query that
accesses the base tables given in the view definition instead.
>
> My goal is to take a view name as input and output the tables and
> columns composing the view.
>
I very much doubt this is possible, unless you step deep into
the parser defined in gram.y and scan.l, which is
as you mentioned beyond your scope.
Regars, Christoph
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-02-04 10:58:55 | Re: SQL99/SQL92 Grammar |
Previous Message | Christoph Haller | 2003-02-04 08:39:53 | Re: iceberg queries |