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

Commit9eb344f

Browse files
Allow vacuums to report oldestxmin
Allow VACUUM and Autovacuum to report the oldestxmin value theyused while cleaning tables, helping to make better sense out ofthe other statistics we report in various cases.
1 parent19dc233 commit9eb344f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎src/backend/commands/vacuumlazy.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,11 @@ lazy_vacuum_rel(Relation onerel, int options, VacuumParams *params,
380380
vacrelstats->pinskipped_pages,
381381
vacrelstats->frozenskipped_pages);
382382
appendStringInfo(&buf,
383-
_("tuples: %.0f removed, %.0f remain, %.0f are dead but not yet removable\n"),
383+
_("tuples: %.0f removed, %.0f remain, %.0f are dead but not yet removable, oldest xmin: %u\n"),
384384
vacrelstats->tuples_deleted,
385385
vacrelstats->new_rel_tuples,
386-
vacrelstats->new_dead_tuples);
386+
vacrelstats->new_dead_tuples,
387+
OldestXmin);
387388
appendStringInfo(&buf,
388389
_("buffer usage: %d hits, %d misses, %d dirtied\n"),
389390
VacuumPageHit,
@@ -1329,8 +1330,8 @@ lazy_scan_heap(Relation onerel, int options, LVRelStats *vacrelstats,
13291330
*/
13301331
initStringInfo(&buf);
13311332
appendStringInfo(&buf,
1332-
_("%.0f dead row versions cannot be removed yet.\n"),
1333-
nkeep);
1333+
_("%.0f dead row versions cannot be removed yet, oldest xmin: %u\n"),
1334+
nkeep,OldestXmin);
13341335
appendStringInfo(&buf,_("There were %.0f unused item pointers.\n"),
13351336
nunused);
13361337
appendStringInfo(&buf,ngettext("Skipped %u page due to buffer pins.\n",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp