Re: COPY with no WAL, in certain circumstances - Mailing list pgsql-patches

From Joshua D. Drake
Subject Re: COPY with no WAL, in certain circumstances
Date
Msg-id 1168110081.24779.0.camel@localhost.localdomain
Whole thread Raw
In response to Re: COPY with no WAL, in certain circumstances  (Euler Taveira de Oliveira <euler@timbira.com>)
Responses Re: COPY with no WAL, in certain circumstances
List pgsql-patches
On Sat, 2007-01-06 at 16:41 -0200, Euler Taveira de Oliveira wrote:
> Simon Riggs wrote:
>
> > As discussed on -hackers, its possible to avoid writing any WAL at all
> > for COPY in these circumstances:
> >
> Cool.
>
> > The enclosed patch implements this, as discussed. There is no user
> > interface to enable/disable, just as with CTAS and CREATE INDEX; no
> > docs, just code comments.
> >
> IMHO, this deserves an GUC parameter (use_wal_in_copy?). Because a lot
> of people use COPY because it's faster than INSERT but expects that it
> will be in WAL. The default would be use_wal_in_copy = true.

That I don't think makes sense. A copy is an all or nothing option, if a
copy fails in the middle the whole thing is rolled back.

Sincerely,

Joshua D. Drake


>
>
--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate




pgsql-patches by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: Re: COPY with no WAL, in certain circumstances
Next
From: Tom Lane
Date:
Subject: Re: COPY with no WAL, in certain circumstances