Re: 8.4 open item: copy performance regression? - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: 8.4 open item: copy performance regression?
Date
Msg-id 39156D9B-6755-4EF0-99AD-C4539E45A952@hi-media.com
Whole thread Raw
In response to Re: 8.4 open item: copy performance regression?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Le 22 juin 2009 à 17:24, Tom Lane <tgl@sss.pgh.pa.us> a écrit :

> Simon Riggs <simon@2ndQuadrant.com> writes:
>> I was thinking it might be beneficial to be able to defer writing WAL
>> until COPY is complete, so heap_sync would either fsync the whole
>> heap
>> file or copy the whole file to WAL.
>
> What about indexes?

Skip this optimisation if there are any.
It's already Common practise to create them only after copy succeeded
when possible for better bulk loading perfs.

Then there's also the copy + Insert ... Select ... technique.

--
dim

pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: [BUGS] BUG #4862: different results in to_date() between 8.3.7 & 8.4.RC1
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #4862: different results in to_date() between 8.3.7 & 8.4.RC1