diff options
author | Andres Freund <andres@anarazel.de> | 2022-02-25 10:30:05 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-02-25 10:30:05 -0800 |
commit | cd83cb953606b94966981056e79dbb6c48751055 (patch) | |
tree | ad69b11e6a78f2d120cac0e5c4533c7b43a5869a /src/backend/utils/adt/numeric.c | |
parent | 73c61a50a1555007001d29844dcdb10b4f982a73 (diff) | |
download | postgresql-cd83cb953606b94966981056e79dbb6c48751055.tar.gz postgresql-cd83cb953606b94966981056e79dbb6c48751055.zip |
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
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions