From: Craig Ringer <craig@postnewspapers.com.au>
To: Dmitriy Savricov <y4gr5rzn@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6101: ALTER TABLE hangs with AccessExclusiveLock
Date: Sat, 09 Jul 2011 16:14:12 +0800
Message-ID: <4E180DD4.7050601@postnewspapers.com.au> (raw)
In-Reply-To: <CAFyKbOX=xY94n7GS0pkAYkszWCwpnm32qF_zz5wpsAGDES-Z+w@mail.gmail.com>
References: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org>
<4E17BAB1.2020806@postnewspapers.com.au>
<CAFyKbOX=xY94n7GS0pkAYkszWCwpnm32qF_zz5wpsAGDES-Z+w@mail.gmail.com>
On 9/07/2011 4:05 PM, Dmitriy Savricov wrote:
> As i figured out, the reason is in "<IDLE> 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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: craig@postnewspapers.com.au, y4gr5rzn@gmail.com
Subject: Re: BUG #6101: ALTER TABLE hangs with AccessExclusiveLock
In-Reply-To: <4E180DD4.7050601@postnewspapers.com.au>
References: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org> <4E17BAB1.2020806@postnewspapers.com.au> <CAFyKbOX=xY94n7GS0pkAYkszWCwpnm32qF_zz5wpsAGDES-Z+w@mail.gmail.com> <4E180DD4.7050601@postnewspapers.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox