Re: build multiple indexes in single table pass? - Mailing list pgsql-hackers

From Toru SHIMOGAKI
Subject Re: build multiple indexes in single table pass?
Date
Msg-id 47F235D7.4030701@oss.ntt.co.jp
Whole thread Raw
In response to build multiple indexes in single table pass?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: build multiple indexes in single table pass?  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
Andrew Dunstan wrote:

> 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?

It is already implemented in pg_bulkload 
(http://pgbulkload.projects.postgresql.org/). Index tuples of multiple indexes 
are spooled during the single sequential pass over the base table, and the 
spooled index tuples are built up after all of the base table is scanned.

A proposal was submitted by Itagaki-san to integrate this feature into core.
see http://archives.postgresql.org/pgsql-hackers/2008-02/msg00811.php .

-- 
Toru SHIMOGAKI<shimogaki.toru@oss.ntt.co.jp>
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Mike Aubury
Date:
Subject: Scroll cursor oddity...
Next
From: Andrew Dunstan
Date:
Subject: Re: build multiple indexes in single table pass?