What is CheckPoint.undo needed for? - Mailing list pgsql-hackers

From Florian G. Pflug
Subject What is CheckPoint.undo needed for?
Date
Msg-id 45DD9A11.5050105@phlo.org
Whole thread Raw
Responses Re: What is CheckPoint.undo needed for?  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Hi

I'm trying to gain a better understanding of how the postgres
xlog works - especially about the corner cases of wal replay.

One thing that I do not understand is what CheckPoint.undo is
used for. I grepped through the source, and only see very few
references to it, which either just print it, or set it to
the checkpoint location or the redo location.

The only place where is is checked is
if (XLByteLT(checkPoint.undo, RecPtr) || XLByteLT(checkPoint.redo, RecPtr))
but I don't see the reason for this check, given that undo never
seems to be assigned any interesting value..

Is there any in-depth documentation about the postgres xlog
implementation?
What am I missing?

greetings, Florian Pflug


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: tsearch in core patch, for inclusion
Next
From: Teodor Sigaev
Date:
Subject: Re: tsearch in core patch, for inclusion