Re: Reindexing primary keys without locking

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Reindexing primary keys without locking
Дата
Msg-id 4DE5FDB0020000250003DF78@gw.wicourts.gov
обсуждение исходный текст
Ответ на Reindexing primary keys without locking  (Glyn Astill <glynastill@yahoo.co.uk>)
Список pgsql-admin
Glyn Astill <glynastill@yahoo.co.uk> wrote:

> Does anyone know of any tricks to replace primary key indexes
> without using reindex? Or any other method that will not lock the
> table for an extended amount of time on 8.4?
>
> I've got a bloated primary key index on a table and I'd like to
> try and clean it up without downtime.

You could create a unique index concurrently on the same columns.
Perhaps that would help with performance problems from the bloat
until you had a window to drop the redundant index and reindex the
table?

-Kevin

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

Предыдущее
От: Ray Stell
Дата:
Сообщение: Re: patching the OS of a 9.0.4 db with hot standby
Следующее
От: "Campbell, Lance"
Дата:
Сообщение: logging how to add timestamp