Re: Rollback using WAL files?

From: "Karen Hill" <karen_hill22(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Rollback using WAL files?
Date: 2007-01-26 18:12:07
Message-ID: 1169835127.429576.134730@m58g2000cwm.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jan 26, 9:45 am, t(dot)(dot)(dot)(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) wrote:
> Florian Weimer <fwei(dot)(dot)(dot)(at)bfk(dot)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

Browse pgsql-general by date

  From Date Subject
Next Message Roman Neuhauser 2007-01-26 18:27:04 Re: Can you specify the pg_xlog location from a config file?
Previous Message Bill Moran 2007-01-26 17:56:39 Predicted lifespan of different PostgreSQL branches