converting unique index into primary key

Поиск
Список
Период
Сортировка
От Ed L.
Тема converting unique index into primary key
Дата
Msg-id 200412221657.20743.pgsql@bluepolka.net
обсуждение исходный текст
Ответы Re: converting unique index into primary key
Список pgsql-general
I need to convert an existing unique index on a very heavily inserted table
into a primary key.  Alter table works, but locks the table for too long.
As a hack, can I just set pg_index.indisprimary = 't' and
pg_constraint.contype = 'p' for the appropriate row in each?  This is for
7.4.6 and 8.0beta3...

TIA...

Ed


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

Предыдущее
От: Klint Gore
Дата:
Сообщение: duplicate msgs when delivery through commandprompt.com
Следующее
От: Geoffrey
Дата:
Сообщение: Re: What HW / OS is recommeded