Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 23751B5DC5A for ; Wed, 3 Aug 2011 14:08:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 40959-05-3 for ; Wed, 3 Aug 2011 17:08:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id C3933B5DC6E for ; Wed, 3 Aug 2011 14:07:52 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p73H7plI051097 for ; Wed, 3 Aug 2011 17:07:51 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p73H7pKj051096; Wed, 3 Aug 2011 17:07:51 GMT (envelope-from www) Date: Wed, 3 Aug 2011 17:07:51 GMT Message-Id: <201108031707.p73H7pKj051096@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6145: Drop View hangs on lock From: "Gary Durbin" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/32 X-Sequence-Number: 30844 The following bug has been logged online: Bug reference: 6145 Logged by: Gary Durbin Email address: hacker@synchsource.com PostgreSQL version: 8.4 Operating system: Linux Description: Drop View hangs on lock Details: Drop view tries to get an exclusive lock on a view. If the view is in use it waits. But when the connection using the view ends the drop does not continue. The request for exclusive lock on the view does not show up in the lock list. We can cancel the transaction and rerun when the view is not in use and it completes.