Re: Cannot drop table ordre because other objects depend on it

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bjørn T Johansen <btj(at)havleik(dot)no>
Cc: PgSQL General ML <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cannot drop table ordre because other objects depend on it
Date: 2003-08-29 14:14:32
Message-ID: 17342.1062166472@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?ISO-8859-1?Q?Bj=F8rn?= T Johansen <btj(at)havleik(dot)no> writes:
> I am trying to drop a table and I get the following error msg:
> Cannot drop table ordre because other objects depend on it
> Use DROP ... CASCADE to drop the dependent objects too
> How do I check which object the table depends on?

Use psql, or some other client code that doesn't drop notices on the
floor. That error should come with a bunch of notices telling you
exactly what else would be dropped by DROP CASCADE.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sander Smeenk 2003-08-29 14:19:31 Re: PostgreSQL upgrade -> fails to start server
Previous Message Tom Lane 2003-08-29 14:09:15 Re: PostgreSQL upgrade -> fails to start server