Fix buildfarm error of 023.ssl_connection.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 10 Sep 2018 02:06:15 +0000 (11:06 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 10 Sep 2018 02:06:15 +0000 (11:06 +0900)
It seems CentOS6/7 recognizes "localhost" as IPv6 ::1.

2018-09-08 17:04:06: pid 21508: DETAIL:  no pg_hba.conf entry for host "::1", user "postgres", database "postgres", SSL on

So add following line to pg_hba.conf.

host    all             all             ::1/128                 trust

Let's see if buildfarm still complains.

src/test/regression/tests/023.ssl_connection/test.sh

index 80b73291fea37e0893cd5f0087625e81e326eefc..bd8b4b9e3ade334b85825641a22bb222233261a2 100755 (executable)
@@ -45,6 +45,9 @@ echo "backend_hostname0 = 'localhost'" >> etc/pgpool.conf
 # connectins is being established is, look into the debug log.
 echo "log_min_messages = debug5" >> etc/pgpool.conf
 
+# allow to access IPv6 localhost
+echo "host    all             all             ::1/128                 trust" >> data0/pg_hba.conf
+
 source ./bashrc.ports
 
 ./startall