From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
Cc: | Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: COPY with no WAL, in certain circumstances |
Date: | 2007-01-06 20:24:02 |
Message-ID: | 200701062024.l06KO2I22996@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Joshua D. Drake wrote:
>
> > > BEGIN;
> > > CREATE TABLE foo...
> > > INSERT INTO foo VALUES ('1');
> > > COPY foo...
> > >
> > > COMMIT;
> >
> > On ABORT, the entire table disappears, as well as the INSERT, so I don't
> > see any problem. I assume the INSERT is WAL logged.
>
> No I don't see any problems, I am just trying to understand the
> boundaries. E.g., is there some weird limitation where if I have any
> values in the table before the copy (like the example above) that copy
> will go through WAL.
>
> Or in other words, does this patch mean that all COPY execution that is
> within a transaction will ignore WAL?
Yes, because it is possible to do in all cases.
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2007-01-06 20:28:39 | Re: -f <output file> option for pg_dumpall |
Previous Message | Bruce Momjian | 2007-01-06 20:20:46 | Re: [COMMITTERS] pgsql: Check for ERANGE in exp() |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-01-06 21:08:24 | Re: [PATCHES] [Fwd: Index Advisor] |
Previous Message | Bruce Momjian | 2007-01-06 19:40:06 | Re: xlog directory at initdb time |