Re: Online index builds

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Online index builds
Дата
Msg-id 21629.1165533062@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Online index builds  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: Online index builds  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-general
Jeff Davis <pgsql@j-davis.com> writes:
> I think all you need to do what you want is something like:
> ALTER TABLE foo DROP CONSTRAINT foo_pkey KEEP INDEX;

> Because then you could drop the primary key status on a column without
> affecting the column or the index, then use my suggested syntax to
> switch the primary key status to a different index like so:
> ALTER TABLE foo SET PRIMARY KEY INDEX foo_othercolumn_index;

That seems like an awful lot of uglification simply to let the index be
marked as "primary key" rather than just "unique".

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Indexes and Inheritance
Следующее
От: Rick Schumeyer
Дата:
Сообщение: Re: tsearch2: pg8.1 to pg8.2