Re: still gin index creation takes forever

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: still gin index creation takes forever
Дата
Msg-id 491AE8AA.3050507@sigaev.ru
обсуждение исходный текст
Ответ на Re: still gin index creation takes forever  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: still gin index creation takes forever  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
>> Any suggestion about how to track down the problem?
>
> What you are describing sounds rather like a use-of-uninitialized-memory
> problem, wherein the behavior depends on what happened to be in that
> memory previously.  If so, using a debug/cassert-enabled build of
> Postgres might help to make the behavior more reproducible.

It seems to me, possible reason of that behavior could be an order of table's
scanning. GIN's build algorithm prefers scan from begin to the end of table, but
in 8.3 it's not always true - scan may begin from the middle or end of table
depending on sequence scan's history.

GIN's build algorithm could use bulk insert of ItemPointers if and only if they
should be inserted on rightmost page (exact piece of code - dataPlaceToPage() in
gindatapage.c, lines 407-427)

Is any way to force table's scan from the beginning?
--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: how to "group" several records with same timestamp into one line?
Следующее
От: "Grzegorz Jaśkiewicz"
Дата:
Сообщение: sort_mem param of postgresql.conf