]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add missing exit() in pg_verifybackup when failing to find pg_waldump
authorMichael Paquier <michael@paquier.xyz>
Thu, 29 Jul 2021 02:00:00 +0000 (11:00 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 29 Jul 2021 02:00:00 +0000 (11:00 +0900)
commitefe169c90090684d2a4ffb0810a0cf2c9b72e19d
treec21140483a6fb520c024d5b02bd6dbbf99c0a0f1
parenta66b05b422d74111f2a6407108f4ba7bdddbb6a0
Add missing exit() in pg_verifybackup when failing to find pg_waldump

pg_verifybackup needs by default pg_waldump to check after a range of
WAL segments required for a backup, except if --no-parse-wal is
specified.  The code checked for the presence of the binary pg_waldump
in an installation and reported an error, but it forgot to properly
exit().  This could lead to confusing errors reported.

Reviewed-by: Robert Haas, Fabien Coelho
Discussion: https://postgr.es/m/YQDMdB+B68yePFeT@paquier.xyz
Backpatch-through: 13
src/bin/pg_verifybackup/pg_verifybackup.c