]> granicus.if.org Git - postgresql/commit
pg_upgrade: prevent check on live cluster from generating error
authorBruce Momjian <bruce@momjian.us>
Tue, 9 Jan 2018 03:43:51 +0000 (22:43 -0500)
committerBruce Momjian <bruce@momjian.us>
Tue, 9 Jan 2018 03:43:51 +0000 (22:43 -0500)
commit1776c817c7ef452fb47d915d1b550cd73a318944
tree4e53b59260e65d63f3b935f63299912e7a576994
parent83fe2708d66889ed9ef6bdb922d27bba4b0d4f81
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
src/bin/pg_upgrade/dump.c
src/bin/pg_upgrade/exec.c
src/bin/pg_upgrade/parallel.c
src/bin/pg_upgrade/pg_upgrade.c
src/bin/pg_upgrade/pg_upgrade.h
src/bin/pg_upgrade/server.c