Re: Cannot DROP while process running - Mailing list pgsql-novice

From Tom Lane
Subject Re: Cannot DROP while process running
Date
Msg-id 12479.1334002135@sss.pgh.pa.us
Whole thread Raw
In response to Cannot DROP while process running  (Steve Horn <steve@stevehorn.cc>)
Responses Re: Cannot DROP while process running  (Devrim GÜNDÜZ <devrim@gunduz.org>)
List pgsql-novice
Steve Horn <steve@stevehorn.cc> writes:
> When I issue the drop command for a table, the server doesn't respond - not
> even with increased disk activity or CPU usage. I am wondering if a lock is
> blocking it?

Look into pg_locks to find out.

> When I select from pg_stat_activity the table I am intending
> on dropping is not listed as having anything actively using it.

Perhaps it has a foreign key link to/from something that's in use?

            regards, tom lane

pgsql-novice by date:

Previous
From: Steve Horn
Date:
Subject: Re: Cannot DROP while process running
Next
From: Devrim GÜNDÜZ
Date:
Subject: Re: Cannot DROP while process running