Views dependency

From: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Views dependency
Date: 2007-03-11 06:24:58
Message-ID: bf54be870703102224p66efc1c0oae182a591f03ee9c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Suppose I have a view:

create view v1 as select * from t1;

and another view as:

create view v2 as select * from v1;

Now is there any query or any catalog table available by which I can get to
know the dependency (names of views on which v2 depends) for view v2?

I did check the pg_views but cant seem to get a simple output from it which
should be like this:

view_name | dependent_views
v1 |
v2 | v1

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-11 06:35:32 Re: Views dependency
Previous Message Berend Tober 2007-03-11 01:47:22 Re: How to enforce uniqueness when NULL values are present?