Re: CREATE INDEX rather sluggish

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE INDEX rather sluggish
Дата
Msg-id 14852.1143731953@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CREATE INDEX rather sluggish  (Gavin Hamill <gdh@laterooms.com>)
Ответы Re: CREATE INDEX rather sluggish  (Gavin Hamill <gdh@laterooms.com>)
Список pgsql-performance
Gavin Hamill <gdh@laterooms.com> writes:
> The table has just under six million rows - should it really be taking
> nearly six minutes to add an index?

Try running it with trace_sort enabled to get more info about where the
time is going.

We've been doing some considerable work on the sorting code in the last
couple months, so 8.2 should be better, but I'd like to verify that
you're not seeing something we don't know about.

> maintenance_work_mem = 262144

Fooling with this might affect the results some.

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Index scan startup time
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Index scan startup time