Unique and Primary Key Constraints - Mailing list pgsql-hackers

From Rod Taylor
Subject Unique and Primary Key Constraints
Date
Msg-id 1026529900.30427.81.camel@jester
Whole thread Raw
Responses Re: Unique and Primary Key Constraints
List pgsql-hackers
I'm going to change the pg_dump command to pull these constraints out of
pg_constaint where possible, creating the appropriate alter table add
constraint command (see primary key).


Should unique constraints created with 'create index' (no entry in
pg_constraint) be re-created via alter table add constraint, or via
create unique index? 

I prefer ...add constraint.  After a while (release or 2) removal of
create unique index all together.

Since index names are unique, and all unique and primary key constraints
have a matching name in pg_index there isn't a problem with name
conflicts.



pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: Memo on dropping practices
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: test data for query optimizer