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

From Tom Lane
Subject Re: skip WAL on COPY patch
Date
Msg-id 3073.1314130656@sss.pgh.pa.us
Whole thread Raw
In response to Re: skip WAL on COPY patch  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: skip WAL on COPY patch
Re: skip WAL on COPY patch
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> What I think would be really interesting is a way to make this work
> when the table *isn't* empty.  In other words, have a COPY option that
> (1) takes an exclusive lock on the table, (2) writes the data being
> inserted into new pages beyond the old EOF, and (3) arranges for crash
> recovery or transaction abort to truncate the table back to its
> previous length.  Then you could do fast bulk loads even into a table
> that's already populated, so long as you don't mind that the table
> will be excusive-locked and freespace within existing heap pages won't
> be reused.

What are you going to do with the table's indexes?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Getting rid of pg_pltemplate
Next
From: Alvaro Herrera
Date:
Subject: Re: skip WAL on COPY patch