Add PK constraint to a Unique Index via updating system catalogs?

Поиск
Список
Период
Сортировка
От CS DBA
Тема Add PK constraint to a Unique Index via updating system catalogs?
Дата
Msg-id 52CB2EA0.1080804@consistentstate.com
обсуждение исходный текст
Ответы Re: Add PK constraint to a Unique Index via updating system catalogs?
Список pgsql-general
Hi All;

We have a few very large tables with unique indexes on a column but the
column is not defined as the Primary Key.  Can we add a PK constraint
via updates to the system catalogs so we can avoid the lengthy checks
that would take place if we ran "alter table add constraint primary key...."


Thanks in advance





В списке pgsql-general по дате отправления:

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: authentication failure
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Add PK constraint to a Unique Index via updating system catalogs?