Skip to content

Commit 8ad1f7d

Browse files
committed
Fix format specifier for NOTICE in copyfrom.c
It's incorrect to use %lz for 64-bit numbers on 32-bit machine.
1 parent 9e2d870 commit 8ad1f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/commands/copyfrom.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,10 +1310,10 @@ CopyFrom(CopyFromState cstate)
13101310
if (cstate->opts.save_error_to != COPY_SAVE_ERROR_TO_ERROR &&
13111311
cstate->num_errors > 0)
13121312
ereport(NOTICE,
1313-
errmsg_plural("%zd row were skipped due to data type incompatibility",
1314-
"%zd rows were skipped due to data type incompatibility",
1315-
cstate->num_errors,
1316-
cstate->num_errors));
1313+
errmsg_plural("%llu row were skipped due to data type incompatibility",
1314+
"%llu rows were skipped due to data type incompatibility",
1315+
(unsigned long long) cstate->num_errors,
1316+
(unsigned long long) cstate->num_errors));
13171317

13181318
if (bistate != NULL)
13191319
FreeBulkInsertState(bistate);

0 commit comments

Comments
 (0)