Re: [GENERAL] Concurrency problem building indexes - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: [GENERAL] Concurrency problem building indexes
Date
Msg-id 20060424225450.GG64695@pervasive.com
Whole thread Raw
Responses Re: [GENERAL] Concurrency problem building indexes
List pgsql-hackers
moving to -hackers

On Sun, Apr 23, 2006 at 09:06:59AM -0500, Wes wrote:
> Postgres: 8.1.3
> OS: Mac OS X 10.4.6
> 
> I've run into another concurrency issue - parallel building of indexes.
> When I try to build multiple indexes at a time, I randomly get:
> 
>   ERROR:  tuple concurrently updated
> 
> The following thread talks about this, but there is no answer.
> 
>   <http://archives.postgresql.org/pgsql-hackers/2002-07/msg00969.php>
> 
> How can I safely build indexes in parallel?
> 
> At this point, I'm only trying to build two at a time.  I will be building
> indexes for tables with any where from a few rows to 100 million rows on a
> daily basis - I need to maximize performance.

Since this seems to only be an issue due to trying to update pg_class
for the table, perhaps CREATE INDEX can just ignore errors there?
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 2x compile warning
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Concurrency problem building indexes