mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Use PRI?64 instead of "ll?" in format strings (continued).
Continuation of work started in commit 15a79c73, after initial trial.
Author: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/b936d2fb-590d-49c3-a615-92c3a88c6c19%40eisentraut.org
This commit is contained in:
@@ -263,8 +263,8 @@ ltsWriteBlock(LogicalTapeSet *lts, int64 blocknum, const void *buffer)
|
||||
if (BufFileSeekBlock(lts->pfile, blocknum) != 0)
|
||||
ereport(ERROR,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not seek to block %lld of temporary file",
|
||||
(long long) blocknum)));
|
||||
errmsg("could not seek to block %" PRId64 " of temporary file",
|
||||
blocknum)));
|
||||
BufFileWrite(lts->pfile, buffer, BLCKSZ);
|
||||
|
||||
/* Update nBlocksWritten, if we extended the file */
|
||||
@@ -284,8 +284,8 @@ ltsReadBlock(LogicalTapeSet *lts, int64 blocknum, void *buffer)
|
||||
if (BufFileSeekBlock(lts->pfile, blocknum) != 0)
|
||||
ereport(ERROR,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not seek to block %lld of temporary file",
|
||||
(long long) blocknum)));
|
||||
errmsg("could not seek to block %" PRId64 " of temporary file",
|
||||
blocknum)));
|
||||
BufFileReadExact(lts->pfile, buffer, BLCKSZ);
|
||||
}
|
||||
|
||||
@@ -1100,10 +1100,10 @@ LogicalTapeBackspace(LogicalTape *lt, size_t size)
|
||||
ltsReadBlock(lt->tapeSet, prev, lt->buffer);
|
||||
|
||||
if (TapeBlockGetTrailer(lt->buffer)->next != lt->curBlockNumber)
|
||||
elog(ERROR, "broken tape, next of block %lld is %lld, expected %lld",
|
||||
(long long) prev,
|
||||
(long long) (TapeBlockGetTrailer(lt->buffer)->next),
|
||||
(long long) lt->curBlockNumber);
|
||||
elog(ERROR, "broken tape, next of block %" PRId64 " is %" PRId64 ", expected %" PRId64,
|
||||
prev,
|
||||
TapeBlockGetTrailer(lt->buffer)->next,
|
||||
lt->curBlockNumber);
|
||||
|
||||
lt->nbytes = TapeBlockPayloadSize;
|
||||
lt->curBlockNumber = prev;
|
||||
|
||||
@@ -918,13 +918,13 @@ tuplesort_free(Tuplesortstate *state)
|
||||
if (trace_sort)
|
||||
{
|
||||
if (state->tapeset)
|
||||
elog(LOG, "%s of worker %d ended, %lld disk blocks used: %s",
|
||||
elog(LOG, "%s of worker %d ended, %" PRId64 " disk blocks used: %s",
|
||||
SERIAL(state) ? "external sort" : "parallel external sort",
|
||||
state->worker, (long long) spaceUsed, pg_rusage_show(&state->ru_start));
|
||||
state->worker, spaceUsed, pg_rusage_show(&state->ru_start));
|
||||
else
|
||||
elog(LOG, "%s of worker %d ended, %lld KB used: %s",
|
||||
elog(LOG, "%s of worker %d ended, %" PRId64 " KB used: %s",
|
||||
SERIAL(state) ? "internal sort" : "unperformed parallel sort",
|
||||
state->worker, (long long) spaceUsed, pg_rusage_show(&state->ru_start));
|
||||
state->worker, spaceUsed, pg_rusage_show(&state->ru_start));
|
||||
}
|
||||
|
||||
TRACE_POSTGRESQL_SORT_DONE(state->tapeset != NULL, spaceUsed);
|
||||
|
||||
Reference in New Issue
Block a user