pgsql: Fix CREATE INDEX CONCURRENTLY to not deadlock against an

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix CREATE INDEX CONCURRENTLY to not deadlock against an
Date: 2008-01-09 21:52:36
Message-ID: 20080109215236.F3D34754108@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix CREATE INDEX CONCURRENTLY to not deadlock against an automatic or manual
VACUUM that is blocked waiting to get lock on the table being indexed.
Per report and fix suggestion from Greg Stark.

Modified Files:
--------------
pgsql/src/backend/commands:
indexcmds.c (r1.169 -> r1.170)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/indexcmds.c?r1=1.169&r2=1.170)
pgsql/src/backend/storage/ipc:
procarray.c (r1.39 -> r1.40)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.39&r2=1.40)
pgsql/src/include/storage:
procarray.h (r1.19 -> r1.20)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/procarray.h?r1=1.19&r2=1.20)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-01-09 23:43:54 pgsql: Remove incorrect (and ill-advised anyway) pfree's in
Previous Message Tom Lane 2008-01-09 20:50:12 pgsql: Fix a bug in 8.2.x that was exposed while investigating Kevin