postgresql/src/bin/pg_waldump
Andres Freund 9ff7fd9063 pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ.
When opening a WAL file smaller than XLOG_BLCKSZ (e.g. 0 bytes long) while
determining the wal_segment_size, pg_waldump checked errno, despite errno not
being set by the short read. Resulting in a bogus error message.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20220214.181847.775024684568733277.horikyota.ntt@gmail.com
Backpatch: 11-, the bug was introducedin fc49e24fa
2022-02-25 10:31:16 -08:00
..
po Translation updates 2021-11-08 10:06:30 +01:00
t Add a copyright notice to perl files lacking one. 2021-05-07 10:56:14 -04:00
.gitignore Avoid use of wildcard in pg_waldump's .gitignore. 2019-10-05 12:26:55 -04:00
compat.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
nls.mk Translation updates 2021-09-20 16:23:13 +02:00
pg_waldump.c pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ. 2022-02-25 10:31:16 -08:00
rmgrdesc.c Split index xlog headers from other private index headers. 2017-02-14 15:37:59 -05:00
rmgrdesc.h Fix assorted header files that failed to compile standalone. 2019-05-31 11:45:33 -04:00