Skip to content

Commit cd6e665

Browse files
committed
Use %u to print out BlockNumber variables
Per Tom Lane
1 parent 35192f0 commit cd6e665

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/commands/vacuumlazy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,17 +356,17 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt,
356356
get_namespace_name(RelationGetNamespace(onerel)),
357357
RelationGetRelationName(onerel),
358358
vacrelstats->num_index_scans);
359-
appendStringInfo(&buf, _("pages: %d removed, %d remain\n"),
359+
appendStringInfo(&buf, _("pages: %u removed, %u remain\n"),
360360
vacrelstats->pages_removed,
361361
vacrelstats->rel_pages);
362362
if (vacrelstats->pinned_pages > 0)
363363
{
364364
if (scan_all)
365-
appendStringInfo(&buf, _("waited for %d buffer pins\n"),
365+
appendStringInfo(&buf, _("waited for %u buffer pins\n"),
366366
vacrelstats->pinned_pages);
367367
else
368368
appendStringInfo(&buf,
369-
_("skipped %d pages due to buffer pins\n"),
369+
_("skipped %u pages due to buffer pins\n"),
370370
vacrelstats->pinned_pages);
371371
}
372372
appendStringInfo(&buf,
@@ -1132,7 +1132,7 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
11321132
if (vacrelstats->pinned_pages > 0)
11331133
{
11341134
if (scan_all)
1135-
appendStringInfo(&buf, _("Waited for %d buffer pins.\n"),
1135+
appendStringInfo(&buf, _("Waited for %u buffer pins.\n"),
11361136
vacrelstats->pinned_pages);
11371137
else
11381138
appendStringInfo(&buf, _("Skipped %u pages due to buffer pins.\n"),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy