pgsql: pg_waldump: Fix error message for WAL files smaller than XLOG_BL

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: pg_waldump: Fix error message for WAL files smaller than XLOG_BL
Дата
Msg-id E1nNfdw-000LaR-OV@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0b1020a96d8e14ba5c5fe22f825c3093160aa83b

Modified Files
--------------
src/bin/pg_waldump/pg_waldump.c | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: vacuumlazy.c: Remove obsolete num_tuples field.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Disallow execution of SPI functions during plperl function compi