Re: find all views depend on a schema/table - Mailing list pgsql-sql

From Tom Lane
Subject Re: find all views depend on a schema/table
Date
Msg-id 13660.1390580600@sss.pgh.pa.us
Whole thread Raw
In response to find all views depend on a schema/table  (Emi Lu <emilu@encs.concordia.ca>)
Responses Re: find all views depend on a schema/table  (Emi Lu <emilu@encs.concordia.ca>)
List pgsql-sql
Emi Lu <emilu@encs.concordia.ca> writes:
> Is there a simple way to query all views depend on a schema or table?

Well, you could build something that examines pg_depend, or you could
try this:

begin;
drop table some_table restrict;
... note what it complains about ...
rollback;
        regards, tom lane



pgsql-sql by date:

Previous
From: Emi Lu
Date:
Subject: find all views depend on a schema/table
Next
From: Adrian Klaver
Date:
Subject: Re: consulting the question about the usage about SSH Tunnel function