Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite93c0b8

Browse files
committed
After PageSetAllVisible, use MarkBufferDirty.
Previously, we used SetBufferCommitInfoNeedsSave, but that's reallyintended for dirty-marks we can theoretically afford to lose, such ashint bits. As for 9.2, the PD_ALL_VISIBLE mustn't be lost in thisway, since we could then end up with a heap page that isn'tall-visible and a visibility map page that is all visible, causingindex-only scans to return wrong answers.
1 parentb5eccae commite93c0b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/vacuumlazy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
603603
if (!PageIsAllVisible(page))
604604
{
605605
PageSetAllVisible(page);
606-
SetBufferCommitInfoNeedsSave(buf);
606+
MarkBufferDirty(buf);
607607
}
608608

609609
LockBuffer(buf,BUFFER_LOCK_UNLOCK);
@@ -838,7 +838,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
838838
if (!PageIsAllVisible(page)&&all_visible)
839839
{
840840
PageSetAllVisible(page);
841-
SetBufferCommitInfoNeedsSave(buf);
841+
MarkBufferDirty(buf);
842842
}
843843

844844
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp