Unbreak pgpool_setup and regression tests against pre-10 PostgreSQL.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 23 Aug 2018 12:12:29 +0000 (21:12 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 23 Aug 2018 12:12:29 +0000 (21:12 +0900)
commit362ade395374c63ba0f973af5c3ddac4949063a2
tree4a0f740957e441bbd8f867f5145d90e8c78fd65e
parentd873dff6e65bdac2718aa43b4e9097a0813608d6
Unbreak pgpool_setup and regression tests against pre-10 PostgreSQL.

Commit 26446126f36dcd34ea9032ac934aafe63acc0eee broke pgpool_setup and
regression tests against pre-10 PostgreSQL because they unconditionally
use feature introduced in PostgreSQL 10, i.e. SCRAM authentication. To
fix this, check PostgreSQL version using initdb -v and not use
PostgreSQL 10 specific feature if PostgreSQL 9.6 or earlier is used.
In this case regression tests 020, 021 and 022 always success.
src/test/pgpool_setup
src/test/regression/regress.sh
src/test/regression/tests/020.allow_clear_text_frontend_auth/test.sh
src/test/regression/tests/021.pool_passwd_auth/test.sh
src/test/regression/tests/022.pool_passwd_alternative_auth/test.sh