pg_upgrade: prevent check on live cluster from generating error
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_upgrade/dump.c | modified | +1 −1 |
| src/bin/pg_upgrade/exec.c | modified | +6 −8 |
| src/bin/pg_upgrade/parallel.c | modified | +4 −5 |
| src/bin/pg_upgrade/pg_upgrade.c | modified | +12 −12 |
| src/bin/pg_upgrade/pg_upgrade.h | modified | +3 −3 |
| src/bin/pg_upgrade/server.c | modified | +9 −9 |