columns refered to in view

From: Alexander Cohen <alex(at)toomuchspace(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: columns refered to in view
Date: 2004-04-14 13:59:05
Message-ID: E47E8EB7-8E1B-11D8-BD9A-000A95B947DC@toomuchspace.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have created a view with this query:

CREATE VIEW testview AS SELECT table.column AS col1, table2.column AS
coll2 FROM table, table2;

Later on, i want to get the table and column name that a field refers
to in this view. In other words i want to get the table and column that
the column 'col1' refers to. Im looking for 'table.column'. How can i
get this information?

thanks!

--
Alexander Cohen
http://www.toomuchspace.com
(819) 348-9237
(819) 432-3443

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Juris Krumins 2004-04-14 14:02:55 Re: cache lookup of relation 165058647 failed
Previous Message Jeremiah Jahn 2004-04-14 13:32:10 Re: Filesystem vs. Postgres for images