Re: [HACKERS] COPY with no WAL, in certain circumstances

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
Cc: "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, pgsql-hackers(at)postgresql(dot)org, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] COPY with no WAL, in certain circumstances
Date: 2007-01-07 17:14:06
Message-ID: 13252.1168190046@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Simon Riggs" <simon(at)2ndquadrant(dot)com> writes:
> There is no failure condition where the rows continue to exist
> on disk && the table relfilenode shows a committed transaction pointing
> to the file containing the marked-valid-but-actually-not rows.

What of

BEGIN;
CREATE TABLE foo ...;
SAVEPOINT x;
COPY foo FROM ...;
ROLLBACK TO x;
COMMIT;

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2007-01-07 17:40:57 Re: proposal: catch warnings
Previous Message Pavel Stehule 2007-01-07 17:02:18 Re: security definer default for some PL languages (SQL/PSM)?

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2007-01-07 17:37:48 Re: Need help using the Patch to fix bug #2558
Previous Message Tom Lane 2007-01-07 16:35:06 Re: [HACKERS] SGML index build fix