Fix pgpool main process segfault when PostgreSQL 9.5. is used.
pgpool_setup -n 3 (or greater) triggers the bug. While recovering node
2, pgpool main process tried to retrieve version info from backend #2
even if it's not running. This causes the sefault because connection
was not established yet. The reason why PostgreSQL 9.6 or later was not
suffered from the bug was, PostgreSQL exited the loop as soon as the
server version is higher than 9.5. To fix this, call to VALID_BACKEND
macro was added.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=d2b8efdd84ec23eb1ba1cee297fd731796228427
Modified Files
--------------
src/main/pgpool_main.c | 6 ++++++
1 file changed, 6 insertions(+)