Re: skip WAL on COPY patch - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: skip WAL on COPY patch
Date
Msg-id 1314134412.23681.7.camel@jdavis-ux.asterdata.local
Whole thread Raw
In response to Re: skip WAL on COPY patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, 2011-08-23 at 15:05 -0400, Tom Lane wrote:
> Steve Singer <ssinger@ca.afilias.info> writes:
> > The attached patch adds an option to the COPY command to skip writing 
> > WAL when the following conditions are all met:
> 
> > 1) The table is empty (zero size on disk)
> > 2) The copy command can obtain an access exclusive lock on the table 
> > with out blocking.
> > 3) The WAL isn't needed for replication
> 
> Exposing this as a user-visible option seems a seriously bad idea.

In that particular way, I agree. But it might be useful if there were a
more general declarative option like "BULKLOAD". We might then use that
information for a number of optimizations that make sense for large
loads.

Regards,Jeff Davis



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 9.1rc1: TRAP: FailedAssertion("!(item_width > 0)", File: "costsize.c", Line: 3274)
Next
From: Tom Lane
Date:
Subject: Another extensions bug