Thread: pgsql: Find invalid databases during upgrade check stage

pgsql: Find invalid databases during upgrade check stage

From
Daniel Gustafsson
Date:
Find invalid databases during upgrade check stage

Before continuing with the check start by checking that all databases
allow connections to avoid a hard fail without proper error reporting.

Inspired by a larger patch by Thomas Krennwallner.

Discussion: https://postgr.es/m/f9315bf0-e03e-4490-9f0d-5b6f7a6d9908@postsubmeta.net

Branch
------
master

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

Modified Files
--------------
src/bin/pg_upgrade/check.c             | 37 +++++++++++++++++++++-------------
src/bin/pg_upgrade/t/002_pg_upgrade.pl |  2 +-
2 files changed, 24 insertions(+), 15 deletions(-)