Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A1211B5DBF0 for ; Fri, 8 Jul 2011 08:33:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 89297-05 for ; Fri, 8 Jul 2011 11:33:10 +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 0FC32B5DBE9 for ; Fri, 8 Jul 2011 08:33:09 -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 p68BX9Ya019849 for ; Fri, 8 Jul 2011 11:33:09 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p68BX9f3019848; Fri, 8 Jul 2011 11:33:09 GMT (envelope-from www) Date: Fri, 8 Jul 2011 11:33:09 GMT Message-Id: <201107081133.p68BX9f3019848@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6101: ALTER TABLE hangs with AccessExclusiveLock From: "Dmitry" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201107/70 X-Sequence-Number: 30682 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.