Re: question on viewing dependencies

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Aaron Burnett <aburnett(at)bzzagent(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: question on viewing dependencies
Date: 2009-02-22 23:07:00
Message-ID: 15293.1235344020@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Aaron Burnett <aburnett(at)bzzagent(dot)com> writes:
> Hopefully a quick answer. Went to drop a table:

> drop table table_foo;
> ERROR: cannot drop table table_foo because other objects depend on it
> HINT: Use DROP ... CASCADE to drop the dependent objects too.

> Wanted to see what the dependencies were:

> BEGIN;
> drop table table_foo CASCADE;
> DROP TABLE
> ROLLBACK;

> Am I overlooking a step to actually seeing the dependant objects?

Maybe you have client_min_messages set to suppress NOTICEs?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Aaron Burnett 2009-02-22 23:41:31 Re: question on viewing dependencies
Previous Message c k 2009-02-22 21:44:17 PERFORM