File size in a backup manifest should use uint64, not size_t.
authorRobert Haas <rhaas@postgresql.org>
Wed, 2 Oct 2024 13:59:04 +0000 (09:59 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 2 Oct 2024 13:59:04 +0000 (09:59 -0400)
commitd94cf5ca7fad9cd81af5eac491bfbaf0facb9f6f
tree757c737bd7d37a01707f15a57257b1f0b34dabb8
parent7b2822ecf944a6aa429c05cc7f070001c3817934
File size in a backup manifest should use uint64, not size_t.

size_t is the size of an object in memory, not the size of a file on disk.

Thanks to Tom Lane for noting the error.

Discussion: http://postgr.es/m/1865585.1727803933@sss.pgh.pa.us
src/bin/pg_combinebackup/load_manifest.c
src/bin/pg_combinebackup/load_manifest.h
src/bin/pg_combinebackup/write_manifest.c
src/bin/pg_combinebackup/write_manifest.h
src/bin/pg_verifybackup/astreamer_verify.c
src/bin/pg_verifybackup/pg_verifybackup.c
src/bin/pg_verifybackup/pg_verifybackup.h
src/common/parse_manifest.c
src/include/common/parse_manifest.h