pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make error handling in parallel pg_upgrade less bogus.
Date: Sun, 16 Dec 2018 19:52:06 +0000
Message-ID: <E1gYcSM-0008P4-OE@gemulon.postgresql.org> (raw)

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.

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b10d2252b35326566d5520acbc65842927c4c3a1

Modified Files
--------------
contrib/pg_upgrade/parallel.c | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1gYcSM-0008P4-OE@gemulon.postgresql.org>
Permalink:  ../E1gYcSM-0008P4-OE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gYcSM-0008P4-OE@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Make error handling in parallel pg_upgrade less bogus.
  In-Reply-To: <E1gYcSM-0008P4-OE@gemulon.postgresql.org>
  References: <E1gYcSM-0008P4-OE@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox