From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: pg_upgrade: prevent check on live cluster from generating error
Date: Tue, 09 Jan 2018 03:44:01 +0000
Message-ID: <E1eYkpV-00067F-OW@gemulon.postgresql.org> (raw)
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
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/1776c817c7ef452fb47d915d1b550cd73a318944
Modified Files
--------------
src/bin/pg_upgrade/dump.c | 2 +-
src/bin/pg_upgrade/exec.c | 14 ++++++--------
src/bin/pg_upgrade/parallel.c | 9 ++++-----
src/bin/pg_upgrade/pg_upgrade.c | 24 ++++++++++++------------
src/bin/pg_upgrade/pg_upgrade.h | 6 +++---
src/bin/pg_upgrade/server.c | 18 +++++++++---------
6 files changed, 35 insertions(+), 38 deletions(-)
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: bruce@momjian.us
Subject: Re: pgsql: pg_upgrade: prevent check on live cluster from generating error
In-Reply-To: <E1eYkpV-00067F-OW@gemulon.postgresql.org>
References: <E1eYkpV-00067F-OW@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