pgsql: Make error handling in parallel pg_upgrade less bogus.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Make error handling in parallel pg_upgrade less bogus.
Дата
Msg-id E1gYcSM-0008P3-OJ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/35efdd7fb81de8333949e7d7ea55908cc91ba897

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Make pg_statistic and related code account more honestly forcol
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Modernize our code for looking up descriptive strings for Unixs