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

From Jim C. Nasby
Subject Re: [GENERAL] Concurrency problem building indexes
Date
Msg-id 20060425005446.GT64695@pervasive.com
Whole thread Raw
In response to Re: [GENERAL] Concurrency problem building indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [GENERAL] Concurrency problem building indexes  (Wes <wespvp@syntegra.com>)
Re: [GENERAL] Concurrency problem building indexes  (Wes <wespvp@syntegra.com>)
List pgsql-hackers
On Mon, Apr 24, 2006 at 08:42:41PM -0400, Tom Lane wrote:
> "Jim C. Nasby" <jnasby@pervasive.com> writes:
> > Was the code ever changed so that it won't update relpages if the number
> > is the same?
> 
> Long ago.  I just tested it again, and AFAICS you can create indexes
> concurrently so long as the underlying table isn't changing (ie,
> neither reltuples nor relpages changes).

Hrm, the OP seemed to find a case that was having problems:
http://archives.postgresql.org/pgsql-general/2006-04/msg01009.php

Of course it's possible that he's getting that error from an entirely
different section of code, or that this is now only an issue if you're
doing a lot of indexing at once...
-- 
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: Tom Lane
Date:
Subject: Re: [GENERAL] Concurrency problem building indexes
Next
From: Gevik Babakhani
Date:
Subject: Re: TODO Item: ACL_CONNECT