Re: build multiple indexes in single table pass?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: build multiple indexes in single table pass?
Дата
Msg-id 2147.1207061432@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: build multiple indexes in single table pass?  (Aidan Van Dyk <aidan@highrise.ca>)
Список pgsql-hackers
Aidan Van Dyk <aidan@highrise.ca> writes:
> * Andrew Dunstan <andrew@dunslane.net> [080401 08:22]:
>> I don't know if this has come up before exactly, but is it possible that 
>> we could get a performance gain from building multiple indexes from a 
>> single sequential pass over the base table?

> I've not looked at any of the code, but would the "synchronized scans"
> heap machinery help the multiple index creations walk the heap together,
> basically giving you this for free (as long as you start concurrent
> index creation)?

Yeah, that should Just Work AFAICS.  Note also that this approach would
let you put multiple CPUs to work on the problem, whereas anything
involving stuffing multiple index creations into a single command
won't.
        regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Scroll cursor oddity...