Re: dropping a table with dependencies

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dropping a table with dependencies
Date: 2003-04-01 15:57:44
Message-ID: 1126.1049212664@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Nigel J. Andrews" <nandrews(at)investsystems(dot)co(dot)uk> writes:
> Why does dropping a table for some dependencies give notice that the
> table is depended upon and for other dependencies that the primary key
> index for the table is depended upon?

It looks like a foreign-key constraint is marked as depending on *both*
the foreign table and the foreign table's pkey index. Which one gets
reported depends on the luck of the draw of traversal order in the
dependency tree.

I'm not sure whether this marking is overkill, though offhand it seems
it might be.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-04-01 16:09:34 Re: Trigger functions
Previous Message Peter Schueller 2003-04-01 15:55:38 deferred constraint trigger problem