Re: REINDEX by table or by index?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: REINDEX by table or by index?
Дата
Msg-id 18182.1055437283@sss.pgh.pa.us
обсуждение исходный текст
Ответ на REINDEX by table or by index?  (Jeff Boes <jboes@nexcerpt.com>)
Список pgsql-admin
Jeff Boes <jboes@nexcerpt.com> writes:
> Given a fairly large (7 MRows or so) table with more than one index
> (say, two): would it be theoretically faster to do
>   REINDEX TABLE "foo";
> or
>   REINDEX INDEX "ix_foo_one";
>   REINDEX INDEX "ix_foo_two";

I doubt you could possibly detect any difference.  The indexes are
rebuilt one at a time in any case, and the statement-level overhead
is insignificant.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Backends "idle in transaction"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Still confused about VACUUM vs. VACUUM FULL