mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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:
@ -798,8 +798,8 @@ retry:
|
||||
cstate->num_errors > cstate->opts.reject_limit)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
errmsg("skipped more than REJECT_LIMIT (%lld) rows due to data type incompatibility",
|
||||
(long long) cstate->opts.reject_limit)));
|
||||
errmsg("skipped more than REJECT_LIMIT (%" PRId64 ") rows due to data type incompatibility",
|
||||
cstate->opts.reject_limit)));
|
||||
|
||||
/* Repeat NextCopyFrom() until no soft error occurs */
|
||||
goto retry;
|
||||
@ -855,10 +855,10 @@ fileEndForeignScan(ForeignScanState *node)
|
||||
festate->cstate->num_errors > 0 &&
|
||||
festate->cstate->opts.log_verbosity >= COPY_LOG_VERBOSITY_DEFAULT)
|
||||
ereport(NOTICE,
|
||||
errmsg_plural("%llu row was skipped due to data type incompatibility",
|
||||
"%llu rows were skipped due to data type incompatibility",
|
||||
(unsigned long long) festate->cstate->num_errors,
|
||||
(unsigned long long) festate->cstate->num_errors));
|
||||
errmsg_plural("%" PRIu64 " row was skipped due to data type incompatibility",
|
||||
"%" PRIu64 " rows were skipped due to data type incompatibility",
|
||||
festate->cstate->num_errors,
|
||||
festate->cstate->num_errors));
|
||||
|
||||
EndCopyFrom(festate->cstate);
|
||||
}
|
||||
@ -1319,10 +1319,10 @@ file_acquire_sample_rows(Relation onerel, int elevel,
|
||||
cstate->num_errors > 0 &&
|
||||
cstate->opts.log_verbosity >= COPY_LOG_VERBOSITY_DEFAULT)
|
||||
ereport(NOTICE,
|
||||
errmsg_plural("%llu row was skipped due to data type incompatibility",
|
||||
"%llu rows were skipped due to data type incompatibility",
|
||||
(unsigned long long) cstate->num_errors,
|
||||
(unsigned long long) cstate->num_errors));
|
||||
errmsg_plural("%" PRIu64 " row was skipped due to data type incompatibility",
|
||||
"%" PRIu64 " rows were skipped due to data type incompatibility",
|
||||
cstate->num_errors,
|
||||
cstate->num_errors));
|
||||
|
||||
EndCopyFrom(cstate);
|
||||
|
||||
|
@ -206,14 +206,12 @@ check_relation_block_range(Relation rel, int64 blkno)
|
||||
if (blkno < 0 || blkno > MaxBlockNumber)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("invalid block number %lld",
|
||||
(long long) blkno)));
|
||||
errmsg("invalid block number %" PRId64, blkno)));
|
||||
|
||||
if ((BlockNumber) (blkno) >= RelationGetNumberOfBlocks(rel))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("block number %lld is out of range",
|
||||
(long long) blkno)));
|
||||
errmsg("block number %" PRId64 " is out of range", blkno)));
|
||||
}
|
||||
|
||||
/* -----------------------------------------------
|
||||
|
@ -436,8 +436,8 @@ hash_bitmap_info(PG_FUNCTION_ARGS)
|
||||
if (ovflblkno >= RelationGetNumberOfBlocks(indexRel))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("block number %lld is out of range for relation \"%s\"",
|
||||
(long long int) ovflblkno, RelationGetRelationName(indexRel))));
|
||||
errmsg("block number %" PRId64 " is out of range for relation \"%s\"",
|
||||
ovflblkno, RelationGetRelationName(indexRel))));
|
||||
|
||||
/* Read the metapage so we can determine which bitmap page to use */
|
||||
metabuf = _hash_getbuf(indexRel, HASH_METAPAGE, HASH_READ, LH_META_PAGE);
|
||||
|
@ -129,8 +129,8 @@ pg_prewarm(PG_FUNCTION_ARGS)
|
||||
if (first_block < 0 || first_block >= nblocks)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("starting block number must be between 0 and %lld",
|
||||
(long long) (nblocks - 1))));
|
||||
errmsg("starting block number must be between 0 and %" PRId64,
|
||||
(nblocks - 1))));
|
||||
}
|
||||
if (PG_ARGISNULL(4))
|
||||
last_block = nblocks - 1;
|
||||
@ -140,8 +140,8 @@ pg_prewarm(PG_FUNCTION_ARGS)
|
||||
if (last_block < 0 || last_block >= nblocks)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("ending block number must be between 0 and %lld",
|
||||
(long long) (nblocks - 1))));
|
||||
errmsg("ending block number must be between 0 and %" PRId64,
|
||||
(nblocks - 1))));
|
||||
}
|
||||
|
||||
/* Now we're ready to do the real work. */
|
||||
|
Reference in New Issue
Block a user