From: Florian Weimer <fweimer@bfk.de>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Deadlock during CREATE INDEX CONCURRENTLY, but index still created
Date: Wed, 18 May 2011 15:32:59 +0000
Message-ID: <828vu4uiqc.fsf@mid.bfk.de> (raw)
In-Reply-To: <BANLkTimKaXXjG6Ga5B+9=t5GtG5ofLUV2Q@mail.gmail.com>
References: <82k4doujd2.fsf@mid.bfk.de>
<BANLkTimKaXXjG6Ga5B+9=t5GtG5ofLUV2Q@mail.gmail.com>
* Scott Marlowe:
> On Wed, May 18, 2011 at 9:19 AM, Florian Weimer <fweimer@bfk.de> wrote:
>> I've run two CREATE INDEX CONCURRENTLY on the same table in parallel,
>> and one of them errored out with:
>> The curious thing is that both indexes were created. I would have
>> expected that the creation of idx1 would be rolled back.
>>
>> Are both of the usable, or should I re-create idx1 from scratch?
>
> They should be marked invalid.
Ah, thanks, I see it now. I guess this answers my question. 8-)
--
Florian Weimer <fweimer@bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
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: fweimer@bfk.de, scott.marlowe@gmail.com
Subject: Re: Deadlock during CREATE INDEX CONCURRENTLY, but index still created
In-Reply-To: <828vu4uiqc.fsf@mid.bfk.de>
* 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