Re: Online index builds - Mailing list pgsql-general

From Tom Lane
Subject Re: Online index builds
Date
Msg-id 6983.1166026366@sss.pgh.pa.us
Whole thread Raw
In response to Re: Online index builds  (Csaba Nagy <nagy@ecircle-ag.com>)
Responses Re: Online index builds  (Csaba Nagy <nagy@ecircle-ag.com>)
List pgsql-general
Csaba Nagy <nagy@ecircle-ag.com> writes:
> So an implementation which optimistically builds the new index
> concurrently while holding no lock, and then hopes for the 3rd
> transaction to be able to get the exclusive lock and be able to swap the
> new index in the place of the old index, and error out if it can't - it
> is perfectly acceptable.

It would maybe be acceptable if there were a way to clean up the mess
after a failure, but there wouldn't be ...

            regards, tom lane

pgsql-general by date:

Previous
From: Erik Jones
Date:
Subject: Re: dynamic plpgsql question
Next
From: Marc Evans
Date:
Subject: Re: dynamic plpgsql question