Find invalid databases during upgrade check stage

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: f638aafd1ea8505750ca9546e0e0b2e4cf31027d
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2024-11-06T14:40:52Z
Releases: 18.0
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

Files

PathChange+/−
src/bin/pg_upgrade/check.c modified +23 −14
src/bin/pg_upgrade/t/002_pg_upgrade.pl modified +1 −1

Discussion