aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-07-18 09:11:34 +0900
committerMichael Paquier <michael@paquier.xyz>2018-07-18 09:11:34 +0900
commit8bd064f0c7d61c40a8a1179e9d24997fc0a20689 (patch)
treed3da52ad565b88b8b3c36890f5046b0301f0fa85
parent811b6e36a9e21a4d9eb78410976c88ce601cea0c (diff)
downloadpostgresql-8bd064f0c7d61c40a8a1179e9d24997fc0a20689.tar.gz
postgresql-8bd064f0c7d61c40a8a1179e9d24997fc0a20689.zip
Fix casting in error message for two-phase file
This error from from 811b6e3, which causes compilation warnings with OSX 10.3 and clang. Reported by Tom Lane, via buildfarm member longfin.
-rw-r--r--src/backend/access/transam/twophase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c
index 0c99b336641..306861bb793 100644
--- a/src/backend/access/transam/twophase.c
+++ b/src/backend/access/transam/twophase.c
@@ -1295,7 +1295,7 @@ ReadTwoPhaseFile(TransactionId xid, bool give_warnings)
else
ereport(WARNING,
(errmsg("could not read file \"%s\": read %d of %zu",
- path, r, stat.st_size)));
+ path, r, (Size) stat.st_size)));
}
pfree(buf);
return NULL;