]> 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 01:59:56 +0000 (10:59 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 29 Jul 2021 01:59:56 +0000 (10:59 +0900)
commit67445deb7eca32d25721dffb228b009bfbe415d5
tree54394800f4a719c9a84238e70ad25ccc62524e88
parentf2a3d7404e5d4aa17dbdf7299b1f0d548fe59b9d
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