Re: WAL-based allocation of XIDs is insecure - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: WAL-based allocation of XIDs is insecure
Date
Msg-id 055801c0a6f9$b1ec6120$4879583f@sectorbase.com
Whole thread Raw
In response to WAL-based allocation of XIDs is insecure  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at> wrote:
>
> In short I do not think that the current implementation of
> "physical log" does what it was intended to do :-(

Hm, wasn't it handling non-atomic disk writes, Andreas?
And for what else "physical log" could be used?

The point was - copy entire page content on first after
checkpoint modification, so on recovery first restore page
to consistent state, so all subsequent logged modifications
could be applied without fear about page inconsistency.

Now, why should we log page as it was *before* modification?
We would log modification anyway (yet another log record!) and
would apply it to page, so result would be the same as now when
we log page after modification - consistent *modifyed* page.

?

Vadim




pgsql-hackers by date:

Previous
From: "Vadim Mikheev"
Date:
Subject: Re: WAL-based allocation of XIDs is insecure
Next
From: "Vadim Mikheev"
Date:
Subject: Re: WAL-based allocation of XIDs is insecure