Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3804CB5DBFC for ; Sat, 9 Jul 2011 05:14:29 -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 77937-07 for ; Sat, 9 Jul 2011 08:14:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id D6491B5DBFB for ; Sat, 9 Jul 2011 05:14:22 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 8162737; Sat, 9 Jul 2011 04:14:22 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Yp+P5wBrZD2z; Sat, 9 Jul 2011 04:14:21 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 5D2D327; Sat, 9 Jul 2011 04:14:21 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id E48F5AF59A; Sat, 9 Jul 2011 16:14:19 +0800 (WST) X-Amavis-Modified: Mail body modified (using disclaimer) - mail.postnewspapers.com.au X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nuS1ZpoRGk8e; Sat, 9 Jul 2011 16:14:15 +0800 (WST) Received: from [10.1.1.7] (124-169-57-156.dyn.iinet.net.au [124.169.57.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 0CDFEAF599; Sat, 9 Jul 2011 16:14:15 +0800 (WST) Message-ID: <4E180DD4.7050601@postnewspapers.com.au> Date: Sat, 09 Jul 2011 16:14:12 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Dmitriy Savricov , pgsql-bugs@postgresql.org Subject: Re: BUG #6101: ALTER TABLE hangs with AccessExclusiveLock References: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org> <4E17BAB1.2020806@postnewspapers.com.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/79 X-Sequence-Number: 30691 On 9/07/2011 4:05 PM, Dmitriy Savricov wrote: > As i figured out, the reason is in " in transaction" process, > which hangs after table filling. From yestaday, I could not understand > what the process keeps the lock, and thinked that reason was inside > FTS - from system tables (pg_class) it was impossible to determine who > has locked the database. Today, I accidentally found the python > process in transaction. > > Thank you very much for your help, and sorry for false report. > No worries. In future it'd be best to submit a test case that can be run as an SQL file, along with things like the contents of pg_locks and pg_stat_activity during the suspected fault, log excerpts, etc etc if you find something that you think might be a bug. If in doubt, ask on the pgsql-general mailing list, providing as much detail as you can. Thanks for following up. -- Craig Ringer POST Newspapers 276 Onslow Rd, Shenton Park Ph: 08 9381 3088 Fax: 08 9388 2258 ABN: 50 008 917 717 http://www.postnewspapers.com.au/