mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +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:
@ -1921,16 +1921,16 @@ UpdateDecodingStats(LogicalDecodingContext *ctx)
|
||||
if (rb->spillBytes <= 0 && rb->streamBytes <= 0 && rb->totalBytes <= 0)
|
||||
return;
|
||||
|
||||
elog(DEBUG2, "UpdateDecodingStats: updating stats %p %lld %lld %lld %lld %lld %lld %lld %lld",
|
||||
elog(DEBUG2, "UpdateDecodingStats: updating stats %p %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64,
|
||||
rb,
|
||||
(long long) rb->spillTxns,
|
||||
(long long) rb->spillCount,
|
||||
(long long) rb->spillBytes,
|
||||
(long long) rb->streamTxns,
|
||||
(long long) rb->streamCount,
|
||||
(long long) rb->streamBytes,
|
||||
(long long) rb->totalTxns,
|
||||
(long long) rb->totalBytes);
|
||||
rb->spillTxns,
|
||||
rb->spillCount,
|
||||
rb->spillBytes,
|
||||
rb->streamTxns,
|
||||
rb->streamCount,
|
||||
rb->streamBytes,
|
||||
rb->totalTxns,
|
||||
rb->totalBytes);
|
||||
|
||||
repSlotStat.spill_txns = rb->spillTxns;
|
||||
repSlotStat.spill_count = rb->spillCount;
|
||||
|
@ -1544,11 +1544,11 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
|
||||
{
|
||||
case RS_INVAL_WAL_REMOVED:
|
||||
{
|
||||
unsigned long long ex = oldestLSN - restart_lsn;
|
||||
uint64 ex = oldestLSN - restart_lsn;
|
||||
|
||||
appendStringInfo(&err_detail,
|
||||
ngettext("The slot's restart_lsn %X/%X exceeds the limit by %llu byte.",
|
||||
"The slot's restart_lsn %X/%X exceeds the limit by %llu bytes.",
|
||||
ngettext("The slot's restart_lsn %X/%X exceeds the limit by %" PRIu64 " byte.",
|
||||
"The slot's restart_lsn %X/%X exceeds the limit by %" PRIu64 " bytes.",
|
||||
ex),
|
||||
LSN_FORMAT_ARGS(restart_lsn),
|
||||
ex);
|
||||
|
Reference in New Issue
Block a user