diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-03-29 10:30:08 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-03-29 10:43:57 +0100 |
commit | a0ed19e0a9efe93b3b83d6e3fe8f77656be253a2 (patch) | |
tree | 8c1040a46a47098d3fe5199530576a1a68acc20f /contrib/file_fdw/file_fdw.c | |
parent | a0a4601765b896079eb82a9d5cfa1f41154fcfdb (diff) | |
download | postgresql-a0ed19e0a9efe93b3b83d6e3fe8f77656be253a2.tar.gz postgresql-a0ed19e0a9efe93b3b83d6e3fe8f77656be253a2.zip |
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
Diffstat (limited to 'contrib/file_fdw/file_fdw.c')
-rw-r--r-- | contrib/file_fdw/file_fdw.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index d94690e89dd..a9a5671d95a 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -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); |