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

Commitbc55cc0

Browse files
committed
Fix problems in commitc16dc1a.
Vinayak Pokale provided a patch for a copy-and-paste error in acomment. I noticed that I'd use the word "automatically" nearby whereI meant to talk about things being "atomic". Rahila Syed spotted amisplaced counter update. Fix all that stuff.
1 parente4b523e commitbc55cc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/backend/commands/vacuumlazy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,6 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
12281228

12291229
/* report that everything is scanned and vacuumed */
12301230
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_SCANNED,blkno);
1231-
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_VACUUMED,blkno);
12321231

12331232
pfree(frozen);
12341233

@@ -1287,7 +1286,8 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
12871286
vacrelstats->num_index_scans++;
12881287
}
12891288

1290-
/* report we're now in the cleanup phase */
1289+
/* report all blocks vacuumed; and that we're cleaning up */
1290+
pgstat_progress_update_param(PROGRESS_VACUUM_HEAP_BLKS_VACUUMED,blkno);
12911291
pgstat_progress_update_param(PROGRESS_VACUUM_PHASE,
12921292
PROGRESS_VACUUM_PHASE_INDEX_CLEANUP);
12931293

‎src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2903,7 +2903,7 @@ pgstat_progress_update_param(int index, int64 val)
29032903
}
29042904

29052905
/*-----------
2906-
*pgstat_progress_update_params() -
2906+
*pgstat_progress_update_multi_param() -
29072907
*
29082908
* Automatically update multiple members in st_progress_param[] of own backend
29092909
* entry.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp