Re: Cannot DROP while process running

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Horn <steve(at)stevehorn(dot)cc>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Cannot DROP while process running
Date: 2012-04-09 20:08:55
Message-ID: 12479.1334002135@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Steve Horn <steve(at)stevehorn(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2012-04-09 20:12:47 Re: Cannot DROP while process running
Previous Message Steve Horn 2012-04-09 19:46:24 Re: Cannot DROP while process running