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

Commit4c697d8

Browse files
committed
Count locked pages that don't need vacuuming as scanned.
Previously, if VACUUM skipped vacuuming a page because it's pinned, itdidn't count that page as scanned. However, that meant that relfrozenxidwas not bumped up either, which prevented anti-wraparound vacuum fromdoing its job.Report by Миша Тюрин, analysis and patch by Sergey Burladyn and Jeff Janes.Backpatch to 9.2, where the skip-locked-pages behavior was introduced.
1 parentf901bb5 commit4c697d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/commands/vacuumlazy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
602602
if (!lazy_check_needs_freeze(buf))
603603
{
604604
UnlockReleaseBuffer(buf);
605+
vacrelstats->scanned_pages++;
605606
continue;
606607
}
607608
LockBuffer(buf,BUFFER_LOCK_UNLOCK);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp