From: Tom Lane <tgl@sss.pgh.pa.us>
To: anarazel@anarazel.de <andres@anarazel.de>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Paul Hinze <paul.t.hinze@gmail.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Simultaneous index creates on different schemas cause deadlock?
Date: Thu, 25 Apr 2013 15:54:55 -0400
Message-ID: <17038.1366919695@sss.pgh.pa.us> (raw)
In-Reply-To: <7a255af4-951e-4c97-b02b-00eacc3644ce@email.android.com>
References: <CAN=EPw+nwfZFUPKSCiXcJfDc8MSWemtxRgc2i2AtOQwybn3hNw@mail.gmail.com>
<10635.1366910251@sss.pgh.pa.us>
<20130425173446.GH11158@awork2.anarazel.de>
<14978.1366915821@sss.pgh.pa.us>
<7a255af4-951e-4c97-b02b-00eacc3644ce@email.android.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
"anarazel@anarazel.de" <andres@anarazel.de> writes:
> I don't have access to the code ATM an I wonder whether DROP CONCURRENTLY has a similar problem? Depends a bit on how the waiting is done...
It's not a problem --- that code doesn't depend on waiting for snapshots
to expire, it just checks for other sessions holding locks on the target
table. (I also did some experimental testing to verify this.)
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, andres@2ndquadrant.com, paul.t.hinze@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Simultaneous index creates on different schemas cause deadlock?
In-Reply-To: <17038.1366919695@sss.pgh.pa.us>
* 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