[pgpool-committers: 4954] pgpool: Fix pgpool main process segfault when PostgreSQL 9.5. is used.

Tatsuo Ishii ishii at postgresql.org
Tue Aug 7 21:43:30 JST 2018


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.

Branches
--------
SCRAM_AUTH
master
query_cache

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(+)



More information about the pgpool-committers mailing list