+++ This bug was initially created as a clone of Bug #1334276 +++ This happens because we don't change the --psqldir in $pg_regress_installcheck variable in Makefile.regress. This issue is in all collections; for postgresql92 on RHEL7 it is not that obvious if system-default postgresql-libs package is installed because the SCL version of postgresql matches the system-default version (9.2). For that reason the testsuite passes. The fix should be: -pg_regress_installcheck = ./pg_regress --inputdir=$(srcdir) --psqldir='/usr/bin' $(pg_regress_locale_flags) +pg_regress_installcheck = ./pg_regress --inputdir=$(srcdir) --psqldir='/opt/rh/rh-postgresql94/root/usr/bin' $(pg_regress_locale_flags)
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/RHBA-2016:1165