Re: more than one index in a single heap pass?

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: more than one index in a single heap pass?
Дата
Msg-id 4A5D1575.1070602@dunslane.net
обсуждение исходный текст
Ответ на Re: more than one index in a single heap pass?  (Greg Stark <gsstark@mit.edu>)
Ответы Re: more than one index in a single heap pass?
Re: more than one index in a single heap pass?
Список pgsql-hackers

Greg Stark wrote:
> On Tue, Jul 14, 2009 at 8:50 PM, Tom Lane<tgl@sss.pgh.pa.us> wrote:
>   
>> Alvaro Herrera <alvherre@commandprompt.com> writes:
>>     
>>> Andrew Dunstan wrote:
>>>       
>>>> I was just wondering idly today if we could usefully build a number of
>>>> indexes at the same time in a single pass over the heap, or could it be
>>>> that we wouldn't gain much? I haven't even got around to thinking about
>>>> any syntax for it.
>>>>         
>>> Could we make it work on two backends building one index each in
>>> synchronized scans?
>>>       
>> Don't we more or less have that already?
>>     
>
> Wasn't that a big part of the point of the "parallel pg_restore" feature?
>
>   

Well, yes, it's some of it, and in theory Tom's late addition of a queue 
that gets all the dependencies of a table as soon as the table data is 
restored should make that work better.  But of course, that's not the 
only time indexes are created, and each index creation command will be 
doing its own heap processing, albeit that synchronised scanning will 
make that lots cheaper.

As I said originally, it was just an idle thought that came to me today.

cheers

andrew


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: navigation menu for documents
Следующее
От: Robert Haas
Дата:
Сообщение: CommitFest 2009-07 is Now Closed