Re: Rollback using WAL files? - Mailing list pgsql-general

From Karen Hill
Subject Re: Rollback using WAL files?
Date
Msg-id 1169835127.429576.134730@m58g2000cwm.googlegroups.com
Whole thread Raw
In response to Rollback using WAL files?  ("M.A. Oude Kotte" <marc@solcon.nl>)
List pgsql-general
On Jan 26, 9:45 am, t...@sss.pgh.pa.us (Tom Lane) wrote:
> Florian Weimer <fwei...@bfk.de> writes:
> > In theory, this should be possible (especially if you haven't switched
> > off full page writes).Not really --- the WAL records are not designed to carry full
> information about the preceding state of the page, so you can't use them
> to undo.  (Example: a DELETE record says which tuple was deleted, but
> not what was in it.)

It would be really useful if one had the option of allowing the WAL
records to keep track of what was in a tuple as evidenced here.   I use
triggers on every production table to record every change to log tables
(which have rules to prevent deleting and updating).     Allowing the
option of having the  WAL  do this seems like a good idea...

regards,
karen


pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Predicted lifespan of different PostgreSQL branches
Next
From: Alan Hodgson
Date:
Subject: Re: Installation on Web Server