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

Commit275a86b

Browse files
committed
Fix typo in freeze_table_age implementation
The original code used freeze_min_age instead of freeze_table_age. Themain consequence of this mistake is that lowering freeze_min_age wouldcause full-table scans to occur much more frequently, which causesserious issues because the number of writes required is much larger.That feature (freeze_min_age) is supposed to affect only how soon tuplesare frozen; some pages should still be skipped due to the visibilitymap.Backpatch to 8.4, where the freeze_table_age feature was introduced.Report and patch from Andres Freund
1 parent7c0e6cc commit275a86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/vacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ vacuum_set_xid_limits(int freeze_min_age,
436436
* VACUUM schedule, the nightly VACUUM gets a chance to freeze tuples
437437
* before anti-wraparound autovacuum is launched.
438438
*/
439-
freezetable=freeze_min_age;
439+
freezetable=freeze_table_age;
440440
if (freezetable<0)
441441
freezetable=vacuum_freeze_table_age;
442442
freezetable=Min(freezetable,autovacuum_freeze_max_age*0.95);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp