Unique and Primary Key Constraints

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Unique and Primary Key Constraints
Дата
Msg-id 1026529900.30427.81.camel@jester
обсуждение исходный текст
Ответы Re: Unique and Primary Key Constraints  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Memo on dropping practices
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: test data for query optimizer