1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Fix more portability issues with casts to Size when using off_t

This should tame the beast, as there are no other places where off_t is
used in the new error messages.

Reported again by longfin, which complained about walsender.c while I
spotted the other two ones while double-checking.
This commit is contained in:
Michael Paquier
2018-07-18 09:51:53 +09:00
parent 8bd064f0c7
commit 94019c879a
3 changed files with 4 additions and 3 deletions

View File

@ -1737,7 +1737,8 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
else
ereport(ERROR,
(errmsg("could not read file \"%s\": read %d of %zu",
path, readBytes, SnapBuildOnDiskConstantSize)));
path, readBytes,
(Size) SnapBuildOnDiskConstantSize)));
}
if (ondisk.magic != SNAPBUILD_MAGIC)