pg_upgrade: prevent check on live cluster from generating error Previously an inaccurate but harmless error was generated when running --check on a live server before reporting the servers as compatible. The fix is to split error reporting and exit control in the exec_prog() API.
Reported-by: Daniel Westermann Backpatch-through: 10 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d25ee30031b08ad1348a090914c2af6bc640a832 Modified Files -------------- src/bin/pg_upgrade/dump.c | 2 +- src/bin/pg_upgrade/exec.c | 14 ++++++-------- src/bin/pg_upgrade/parallel.c | 9 ++++----- src/bin/pg_upgrade/pg_upgrade.c | 24 ++++++++++++------------ src/bin/pg_upgrade/pg_upgrade.h | 6 +++--- src/bin/pg_upgrade/server.c | 18 +++++++++--------- 6 files changed, 35 insertions(+), 38 deletions(-)
