Re: Deadlock during CREATE INDEX CONCURRENTLY, but index still created

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Florian Weimer <fweimer(at)bfk(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Deadlock during CREATE INDEX CONCURRENTLY, but index still created
Date: 2011-05-18 15:33:17
Message-ID: BANLkTimKaXXjG6Ga5B+9=t5GtG5ofLUV2Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, May 18, 2011 at 9:19 AM, Florian Weimer <fweimer(at)bfk(dot)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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Syed Khan 2011-05-18 17:10:57 shutdown procedure warm standby
Previous Message Florian Weimer 2011-05-18 15:32:59 Re: Deadlock during CREATE INDEX CONCURRENTLY, but index still created