pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitry <y4gr5rzn@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6101: ALTER TABLE hangs with AccessExclusiveLock
Date: Fri, 8 Jul 2011 11:33:09 GMT
Message-ID: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org> (raw)


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.

Command: ALTER TABLE Amazon.Books ADD COLUMN textsearchable_index_col
tsvector;

Similar reports:
http://archives.postgresql.org/pgsql-admin/2002-04/msg00284.php
http://www.justskins.com/forums/how-to-release-a-133616.html

pg_locks: AccessExclusiveLock granted=f
ps:
postgres  3535  0.0  0.0  50064   652 ?        Ss   Jul05   0:00 postgres:
al mydb [local] idle in transaction
postgres 22295  0.1  1.0  51804 34028 ?        Ss   Jul03   7:18 postgres:
al mydb [local] ALTER TABLE waiting

Also, i can submit SQL table description, full pg_locks, pg_class,
pg_stat_activity.



view thread (3+ messages)  latest in thread

Message-ID: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org>
Permalink:  ../201107081133.p68BX9f3019848@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201107081133.p68BX9f3019848@wwwmaster.postgresql.org

 · 

reply

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: y4gr5rzn@gmail.com
  Subject: Re: BUG #6101: ALTER TABLE hangs with AccessExclusiveLock
  In-Reply-To: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org>
  References: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org>

* 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