Slide 24
Slide 24 text
Meta-data in the WAL
• The first time any zheap WAL record is written to each
undo log after a checkpoint (ie after the redo point of a
checkpoint), we first write an undo log ‘meta data’ record,
which will compensate for the inconsistencies in the undo
checkpoint file. All writes after that can omit the location
because it’s implied, reducing WAL size.
• When I showed this slide at pgcon unconf, I had
something here about why we don’t need full_page_writes,
but that was wrong: we do need them, but we can
probably use REGBUF_WILL_INIT or something similar to
avoid them almost always; I’m looking into that…