AW: Re: Backup and Recovery

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: AW: Re: Backup and Recovery
Date: 2001-07-04 08:37:57
Message-ID: 11C1E6749A55D411A9670001FA68796336835C@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> I imagine a daemon extracting redo log entries from WAL segments,
> asynchronously. Mixing redo log entries into the WAL allows the WAL
> to be the only synchronous disk writer in the system, a Good Thing.

This comes up periodically now. WAL currently already has all the info
that would be needed for redo (it actually has to). All that is missing
is a program, that can take a consistent physical snapshot (as it was after
a particular checkpoint) and would replay the WAL after a restore of such a
snapshot. This replay after a consistent snapshot is probably as simple
as making the WAL files available to the standard startup rollforward (redo)
mechanism, that is already implemented.

Actually it might even be possible to do the WAL redo based on
an inconsistent backup (e.g. done with tar/cpio), but that probably needs
more thought and testing than above. At the least, the restore would need to
generate a valid pg_control before starting redo.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Klaus Reger 2001-07-04 09:06:38 Get table/field-identifiers in uppercase
Previous Message Tom Lane 2001-07-04 03:29:36 Re: Buffer access rules, and a probable bug