Re: Postgres wont drop foriegn keys on tables.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Barnes <compuguruchrisbarnes(at)hotmail(dot)com>
Cc: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres wont drop foriegn keys on tables.
Date: 2010-09-23 15:29:47
Message-ID: 2292.1285255787@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Barnes <compuguruchrisbarnes(at)hotmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sandeep Srinivasa 2010-09-23 15:30:06 Re: Unable to upgrade old cluster from 8.4 to 9.0
Previous Message Vick Khera 2010-09-23 15:28:05 Re: Postgres wont drop foriegn keys on tables.