RE: Proposed WAL changes

From: "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
To: "'Ian Lance Taylor'" <ian(at)airs(dot)com>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: Proposed WAL changes
Date: 2001-03-08 01:49:34
Message-ID: 8F4C99C66D04D4118F580090272A7A234D32FB@sectorbase1.sectorbase.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > But what can be done if fsync returns before pages flushed?
>
> When you write out critical information, you keep earlier versions of
> it. On startup, if the critical information is corrupt, you use the
> earlier versions of it. This helps protect against the scenario I
> mentioned: a few disk blocks may not have been written when the power
> goes out.
>
> My impression is that that is what Tom is doing with his patches.

If fsync may return before data *actually* flushed then you may have
unlogged data page changes which breakes WAL rule and means corrupted
(inconsistent) database without ANY ABILITY TO RECOVERY TO CONSISTENT
STATE. Now please explain me how saving positions of two checkpoints
(what Tom is doing) can help here?

Vadim

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-03-08 02:24:50 Re: Proposed WAL changes
Previous Message Hiroshi Inoue 2001-03-08 01:47:58 Re: AW: Proposed WAL changes