Re: Postgres wont drop foriegn keys on tables. - Mailing list pgsql-general

From Tom Lane
Subject Re: Postgres wont drop foriegn keys on tables.
Date
Msg-id 2292.1285255787@sss.pgh.pa.us
Whole thread Raw
In response to Postgres wont drop foriegn keys on tables.  (Chris Barnes <compuguruchrisbarnes@hotmail.com>)
List pgsql-general
Chris Barnes <compuguruchrisbarnes@hotmail.com> writes:
> I am attempting to drop an foreign key on a table and it sits for hours and doesn't drop or put anything into the
log.

Dropping a foreign key is fast in itself, but it requires exclusive lock
on both the referencing and referenced tables.  Look to see what is
blocking the lock request.  pg_locks and pg_stat_activity views are
your friends.

            regards, tom lane

pgsql-general by date:

Previous
From: Vick Khera
Date:
Subject: Re: Postgres wont drop foriegn keys on tables.
Next
From: Sandeep Srinivasa
Date:
Subject: Re: Unable to upgrade old cluster from 8.4 to 9.0