On Tue, 2008-02-05 at 18:15 +0100, Dimitri Fontaine wrote:
> Le mardi 05 février 2008, Simon Riggs a écrit :
> > I'll look at COPY FROM internals to make this faster. I'm looking at
> > this now to refresh my memory; I already had some plans on the shelf.
>
> Maybe stealing some ideas from pg_bulkload could somewhat help here?
> http://pgfoundry.org/docman/view.php/1000261/456/20060709_pg_bulkload.pdf
> IIRC it's mainly about how to optimize index updating while loading data, and
> I've heard complaints on the line "this external tool has to know too much
> about PostgreSQL internals to be trustworthy as non-core code"... so...
Yeh, the batch index updates are a cool feature. Should be able to do
that internally also.
Not going to try the no-WAL route again though. If we can get it running
efficiently and in parallel, then that will be OK.
--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com