Content-Length: 264736 | pFad | http://github.com/postgrespro/postgres_cluster/commit/08a6d36dcbe4ebdcdf9d554e5b571748fe23001b

29 Use INT64_FORMAT instead of %ld for int64. · postgrespro/postgres_cluster@08a6d36 · GitHub
Skip to content

Commit 08a6d36

Browse files
committed
Use INT64_FORMAT instead of %ld for int64.
Commit 0011c00 introduced this mistake. Patch by me. Reported by Andres Freund, who also reviewed the patch.
1 parent c4901a1 commit 08a6d36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/utils/sort/tuplesort.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,8 +2692,9 @@ beginmerge(Tuplesortstate *state, bool finalMergeBatch)
26922692
state->mergetuples[srcTape] + 1023) / 1024;
26932693
usedSlots = slotsPerTape - state->mergeavailslots[srcTape];
26942694

2695-
elog(LOG, "tape %d initially used %ld KB of %ld KB batch "
2696-
"(%2.3f) and %d out of %d slots (%2.3f)", srcTape,
2695+
elog(LOG, "tape %d initially used " INT64_FORMAT " KB of "
2696+
INT64_FORMAT " KB batch (%2.3f) and %d out of %d slots "
2697+
"(%2.3f)", srcTape,
26972698
usedSpaceKB, perTapeKB,
26982699
(double) usedSpaceKB / (double) perTapeKB,
26992700
usedSlots, slotsPerTape,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/08a6d36dcbe4ebdcdf9d554e5b571748fe23001b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy