Re: code question: storing INTO relation

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: code question: storing INTO relation
Дата
Msg-id 20041113033316.GA30201@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: code question: storing INTO relation  (Kevin Brown <kevin@sysexperts.com>)
Список 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 по дате отправления:

Предыдущее
От: Kevin Brown
Дата:
Сообщение: Re: code question: storing INTO relation
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: confusing log messages on pg_ctl -w start