From: Craig Ringer <craig@postnewspapers.com.au>
To: Dmitry <y4gr5rzn@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6101: ALTER TABLE hangs with AccessExclusiveLock
Date: Sat, 09 Jul 2011 10:19:29 +0800
Message-ID: <4E17BAB1.2020806@postnewspapers.com.au> (raw)
In-Reply-To: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org>
References: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org>
On 8/07/2011 7:33 PM, Dmitry wrote:
> The following bug has been logged online:
>
> Bug reference: 6101
> Logged by: Dmitry
> Email address: y4gr5rzn@gmail.com
> PostgreSQL version: 9.0.4
> Operating system: Debian i686 2.6.32-5-686-bigmem
> Description: ALTER TABLE hangs with AccessExclusiveLock
> Details:
>
> ALTER locks the table AccessExclusiveLock and hangs.
> I can break it with Ctrl-C in psql, but it 100% reproduces in any session.
Are there any other sessions running concurrently? Is a lock on the
table you are trying to ALTER already held by another transaction
according to pg_locks ?
So far there's no evidence that this is anything except locking doing
its job.
--
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: <4E17BAB1.2020806@postnewspapers.com.au>
References: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org> <4E17BAB1.2020806@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