]> granicus.if.org Git - postgresql/commitdiff
Fix casting in error message for two-phase file
authorMichael Paquier <michael@paquier.xyz>
Wed, 18 Jul 2018 00:11:34 +0000 (09:11 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 18 Jul 2018 00:11:34 +0000 (09:11 +0900)
This error from from 811b6e3, which causes compilation warnings with OSX
10.3 and clang.

Reported by Tom Lane, via buildfarm member longfin.

src/backend/access/transam/twophase.c

index 0c99b3366417b8dba7b7d5cface204f7f4195bfa..306861bb793bc215e7607206199a35d5148a5ad9 100644 (file)
@@ -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;