Steps to reproduce outside of OpenShift: 1) #> yum -u install rh-postgresql96 rh-postgresql10 2) #> scl enable rh-postgresql96 -- postgresql-setup --initdb 3) #> scl enable rh-postgresql10 bash 4) bash# PGSETUP_PGUPGRADE_OPTIONS='-s /tmp' postgresql-setup --upgrade --upgrade-from=rh-postgresql96-postgresql Actual results: bash# PGSETUP_PGUPGRADE_OPTIONS=-s=/tmp postgresql-setup --upgrade --upgrade-from=rh-postgresql96-postgresql * upgrading from 'rh-postgresql96-postgresql.service' to 'rh-postgresql10-postgresql.service' * Upgrading database. ERROR: pg_upgrade tool failed ERROR: Upgrade failed. * See /var/lib/pgsql/upgrade_rh-postgresql10-postgresql.log for details. Expected results: bash# PGSETUP_PGUPGRADE_OPTIONS='-s /tmp' postgresql-setup --upgrade --upgrade-from=rh-postgresql96-postgresql * upgrading from 'rh-postgresql96-postgresql.service' to 'rh-postgresql10-postgresql.service' * Upgrading database. * Upgraded OK. WARNING: The configuration files were replaced by default configuration. WARNING: The previous configuration and data are stored in folder WARNING: /var/opt/rh/rh-postgresql96/lib/pgsql/data. * See /var/lib/pgsql/upgrade_rh-postgresql10-postgresql.log for details.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:0980