Re: [ADMIN] Rebuild indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [ADMIN] Rebuild indexes
Дата
Msg-id 17554.1059445297@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rebuild indexes  (Shankar K <shan0075@yahoo.com>)
Ответы Re: [ADMIN] Rebuild indexes  (Shankar K <shan0075@yahoo.com>)
Список pgsql-performance
Shankar K <shan0075@yahoo.com> writes:
> ... so i then decided to do reindex online, but
> that makes exclusive lock on table which would prevent
> writing on to tables.

So does CREATE INDEX, so it's not clear what you're buying with
all these pushups.

> 2. analyze table to update stats, so that the table
> knows about new indexes.

You do not need to ANALYZE to get the system to notice new indexes.

> 4. i wish i had a rename index command to rename _swap
> to its original index name.

You can rename indexes as if they were tables.

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Rebuild indexes
Следующее
От: Shankar K
Дата:
Сообщение: Re: [ADMIN] Rebuild indexes