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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user