Re: question on viewing dependencies

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


Thanks Tom,

It was not supressed for notice, so I changed it to 'debug1' and it gave me
the answers I was looking for.

On 2/22/09 6:07 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> 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

Browse pgsql-general by date

  From Date Subject
Next Message Mike Hall 2009-02-22 23:45:02 Re: Cambiando Postgresql 7.4.3 a 8.1.11 !!!
Previous Message Tom Lane 2009-02-22 23:07:00 Re: question on viewing dependencies