pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Steve Singer <ssinger@ca.afilias.info>
Cc: PostgreSQL-development Hackers <pgsql-hackers@postgresql.org>
Subject: Re: skip WAL on COPY patch
Date: Tue, 23 Aug 2011 14:20:12 -0700
Message-ID: <1314134412.23681.7.camel@jdavis-ux.asterdata.local> (raw)
In-Reply-To: <1739.1314126320@sss.pgh.pa.us>
References: <4E53E7D5.6030808@ca.afilias.info>
	<1739.1314126320@sss.pgh.pa.us>

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




view thread (10+ messages)  latest in thread

Message-ID: <1314134412.23681.7.camel@jdavis-ux.asterdata.local>
Permalink:  ../1314134412.23681.7.camel@jdavis-ux.asterdata.local/
Also on:    postgresql.org/message-id/1314134412.23681.7.camel@jdavis-ux.asterdata.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: pgsql@j-davis.com, tgl@sss.pgh.pa.us, ssinger@ca.afilias.info
  Subject: Re: skip WAL on COPY patch
  In-Reply-To: <1314134412.23681.7.camel@jdavis-ux.asterdata.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox