Fix WAL file selection in 013_rewind test Without an explicit WAL filename, pg_waldump determines the segment size from the first WAL-named directory entry. A preallocated segment with an uninitialized header can make this fail before the checkpoint is read.
Pass the WAL filename recorded in backup_label to avoid depending on directory enumeration order. Use command_like() so command failures and stderr are checked rather than appearing only as an empty-output mismatch. This was independently reported by Nazir Bilal Yavuz and Alexander Lakhin. Author: Nazir Bilal Yavuz <[email protected]> Reported-by: Nazir Bilal Yavuz <[email protected]> Reported-by: Alexander Lakhin <[email protected]> Reviewed-by: Zsolt Parragi <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Discussion: https://postgr.es/m/CAN55FZ1Yak_xBqMaDQsD7atpBkGLEkF-DKXcs3nLHM1Uq4YRew%40mail.gmail.com Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a5447a2deaca65c69f1838240f6bdb3ff85c9577 Modified Files -------------- src/test/modules/test_checksums/t/013_rewind.pl | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)
