]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make error handling in parallel pg_upgrade less bogus.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Dec 2018 19:51:48 +0000 (14:51 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Dec 2018 19:51:48 +0000 (14:51 -0500)
commit35efdd7fb81de8333949e7d7ea55908cc91ba897
treefa4d2a878f2165d4920f91d1d01ff5d2bdfb2f52
parentad6ebcfcbb889e6e01b131d8195d9bc15efd5420
Make error handling in parallel pg_upgrade less bogus.

reap_child() basically ignored the possibility of either an error in
waitpid() itself or a child process failure on signal.  We don't really
need to do more than report and crash hard, but proceeding as though
nothing is wrong is definitely Not Acceptable.  The error report for
nonzero child exit status was pretty off-point, as well.

Noted while fooling around with child-process failure detection
logic elsewhere.  It's been like this a long time, so back-patch to
all supported branches.
src/bin/pg_upgrade/parallel.c