Re: code question: storing INTO relation - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: code question: storing INTO relation
Date
Msg-id 20041113033316.GA30201@dcc.uchile.cl
Whole thread Raw
In response to Re: code question: storing INTO relation  (Kevin Brown <kevin@sysexperts.com>)
List pgsql-hackers
On Fri, Nov 12, 2004 at 03:49:44PM -0800, Kevin Brown wrote:
> Bruce Momjian wrote:
> > 
> > Added to TODO:
> > 
> >     * Eliminate WAL logging for CREATE INDEX/REINDEX/CREATE TABLE AS
> >       when not doing WAL archiving
> 
> But that means that these operations can't be performed in a
> transaction unless WAL archiving is on, right?

No, because we ensure the transactionality of the operation by fsync'ing
the involved files.  And the rollback-ability is ensured by registering
the files for deletion at rollback.  (Just as we register the files for
deletion at commit in case of a DROP TABLE, to make sure we can roll it
back.)

So don't worry, because what you want to do still works.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"En las profundidades de nuestro inconsciente hay una obsesiva necesidad
de un universo lógico y coherente. Pero el universo real se halla siempre
un paso más allá de la lógica" (Irulan)


pgsql-hackers by date:

Previous
From: Kevin Brown
Date:
Subject: Re: code question: storing INTO relation
Next
From: Bruce Momjian
Date:
Subject: Re: confusing log messages on pg_ctl -w start