1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Department of second thoughts: remove PD_ALL_FROZEN.

Commit a892234f83 added a second bit per
page to the visibility map, which still seems like a good idea, but it
also added a second page-level bit alongside PD_ALL_VISIBLE to track
whether the visibility map bit was set.  That no longer seems like a
clever plan, because we don't really need that bit for anything.  We
always clear both bits when the page is modified anyway.

Patch by me, reviewed by Kyotaro Horiguchi and Masahiko Sawada.
This commit is contained in:
Robert Haas
2016-03-08 08:46:48 -05:00
parent ba0a198fb1
commit 77a1d1e798
4 changed files with 21 additions and 45 deletions

View File

@ -7855,10 +7855,7 @@ heap_xlog_visible(XLogReaderState *record)
*/
page = BufferGetPage(buffer);
if (xlrec->flags & VISIBILITYMAP_ALL_VISIBLE)
PageSetAllVisible(page);
if (xlrec->flags & VISIBILITYMAP_ALL_FROZEN)
PageSetAllFrozen(page);
PageSetAllVisible(page);
MarkBufferDirty(buffer);
}