Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Korotkov2024-01-16 22:59:44 +0000
committerAlexander Korotkov2024-01-16 22:59:44 +0000
commit8ad1f7db87f0375cfd7c6ae24aa13bdbdff2477a (patch)
tree93227838b5d418b17db68c13c7ec5029b0c133a3 /src/backend/commands/copyfrom.c
parent9e2d8701194fa1d280b73c024759950c74c1c637 (diff)
Fix format specifier for NOTICE in copyfrom.c
It's incorrect to use %lz for 64-bit numbers on 32-bit machine.
Diffstat (limited to 'src/backend/commands/copyfrom.c')
-rw-r--r--src/backend/commands/copyfrom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/commands/copyfrom.c b/src/backend/commands/copyfrom.c
index 46b23e345b8..4058b08134d 100644
--- a/src/backend/commands/copyfrom.c
+++ b/src/backend/commands/copyfrom.c
@@ -1310,10 +1310,10 @@ CopyFrom(CopyFromState cstate)
if (cstate->opts.save_error_to != COPY_SAVE_ERROR_TO_ERROR &&
cstate->num_errors > 0)
ereport(NOTICE,
- errmsg_plural("%zd row were skipped due to data type incompatibility",
- "%zd rows were skipped due to data type incompatibility",
- cstate->num_errors,
- cstate->num_errors));
+ errmsg_plural("%llu row were 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));
if (bistate != NULL)
FreeBulkInsertState(bistate);