Re: Recreating a primary key

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Recreating a primary key
Дата
Msg-id 5959.1046462906@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Recreating a primary key  (Ericson Smith <eric@did-it.com>)
Список pgsql-general
Ericson Smith <eric@did-it.com> writes:
> Is there a way to re-create a primary key?

In 7.3, there's ALTER TABLE ADD PRIMARY KEY.  In earlier releases,
you'd have to fake it by manually poking pg_index.indisprimary
after you create a unique index.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Some useful plpgsl
Следующее
От: Detlef Jockheck
Дата:
Сообщение: automatic creation of oid