Re: does reindex need exclusive table access? - Mailing list pgsql-general

From Tom Lane
Subject Re: does reindex need exclusive table access?
Date
Msg-id 29331.1320243114@sss.pgh.pa.us
Whole thread Raw
In response to Re: does reindex need exclusive table access?  (Vincent de Phily <vincent.dephily@mobile-devices.fr>)
List pgsql-general
Vincent de Phily <vincent.dephily@mobile-devices.fr> writes:
> The technique kinda works (with some changes) using unique indexes however. Is
> there a functional difference between a unique index and a primary key index
> (knowing that my column is not null) ? Or is it just for documentation and ORM
> purposes ?

The only functional difference is that a foreign key declaration
referring to the table ("REFERENCES tabname") will default to the pkey
column list.  If you haven't got a declared pkey then you have to spell
out the column list.

            regards, tom lane

pgsql-general by date:

Previous
From: Vincent de Phily
Date:
Subject: Re: does reindex need exclusive table access?
Next
From: Samba
Date:
Subject: equivalent to "replication_timeout" on standby server