switch UNLOGGED to LOGGED - Mailing list pgsql-hackers

From Leonardo Francalanci
Subject switch UNLOGGED to LOGGED
Date
Msg-id 831695.27653.qm@web29019.mail.ird.yahoo.com
Whole thread Raw
Responses Re: switch UNLOGGED to LOGGED
List pgsql-hackers
Hi,

I read the discussion at


http://archives.postgresql.org/pgsql-hackers/2011-01/msg00315.php


From what I can understand, going from/to unlogged to/from logged in
the wal_level == minimal case is not too complicated.

Suppose I try to write a patch that allows

ALTER TABLE tablename SET LOGGED (or UNLOGGED)
(proper sql wording to be discussed...)

only in the wal_level == minimal case: would it be accepted as a
"first step"? Or rejected because it doesn't allow it in the other
cases?

From what I got in the discussion, handling the other wal_level cases
can be very complicated (example: the issues in case "we *crash*
without writing an abort record").




Leonardo


pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: [BUGS] Failed assert ((data - start) == data_size) in heaptuple.c
Next
From: Noah Misch
Date:
Subject: Re: pg_upgrade bug found!