X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id CF8789FA667 for ; Mon, 3 Jul 2006 00:23:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 20454-03 for ; Mon, 3 Jul 2006 00:23:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 995469FA60C for ; Mon, 3 Jul 2006 00:23:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k633NfEc022480; Sun, 2 Jul 2006 23:23:41 -0400 (EDT) To: Hima Surapaneni cc: pgsql-sql@postgresql.org Subject: Re: Can't drop table In-reply-to: <203.39.118.63.1151878450@my.monash.edu.au> References: <203.39.118.63.1151878450@my.monash.edu.au> Comments: In-reply-to Hima Surapaneni message dated "Mon, 03 Jul 2006 08:30:01 +1000" Date: Sun, 02 Jul 2006 23:23:41 -0400 Message-ID: <22479.1151897021@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/22 X-Sequence-Number: 25596 Hima Surapaneni writes: > The query was successful. But when I try to drop or alter the table, it just hangs without echoing any error message. I have to cancel the query to get out. Sounds like there's some open transaction with a lock on the table. The pg_locks view might help you figure out which one. regards, tom lane