agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Emi Lu <emilu@encs.concordia.ca>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: find all views depend on a schema/table
Date: Fri, 24 Jan 2014 12:04:11 -0500
Message-ID: <52E29D0B.4000201@encs.concordia.ca> (raw)
In-Reply-To: <13660.1390580600@sss.pgh.pa.us>
References: <52E28D0D.3080908@encs.concordia.ca>
	<13660.1390580600@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

>> 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:

Thank you. I will try to find mapped results for pg_depend.

> begin;
> drop table some_table restrict;
> ... note what it complains about ...
> rollback;

No... to find all views(not in schema1) depend on any schema1.objects.









-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (4+ messages)  latest in thread

Message-ID: <52E29D0B.4000201@encs.concordia.ca>
Permalink:  ../52E29D0B.4000201@encs.concordia.ca/
Also on:    postgresql.org/message-id/52E29D0B.4000201@encs.concordia.ca

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: emilu@encs.concordia.ca, tgl@sss.pgh.pa.us
  Subject: Re: find all views depend on a schema/table
  In-Reply-To: <52E29D0B.4000201@encs.concordia.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox