Re: Cannot create unique index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: Henrik Steffen <steffen(at)city-map(dot)de>, Andrew Gould <andrewgould(at)yahoo(dot)com>, pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cannot create unique index
Date: 2003-07-01 14:29:31
Message-ID: 2892.1057069771@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"scott.marlowe" <scott(dot)marlowe(at)ihs(dot)com> writes:
> how odd. Since reindex works by dropping the index then recreating it, is
> it possible that some process inserted duplicates in the split second
> there was no index?

No, because reindex holds exclusive lock on the table for the whole
process.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alejandro Javier Pomeraniec 2003-07-01 15:11:54 Accent insensitive search
Previous Message S.Peppe 2003-07-01 14:10:23 ERROR: Relation "pg_user" does not exist