[pgpool-committers: 7311] pgpool: Fix segfault in child pgpool process in certain failback case.

Tatsuo Ishii ishii at sraoss.co.jp
Sun Dec 13 11:41:01 JST 2020


Fix segfault in child pgpool process in certain failback case.

When previous primary node id is 0 and then it went down, restarted,
re-attached without promotion. Then existing child process loses
connection slot to node 0 and keeps on using it when node 0 comes
back. This could result in segfault later on in the child process
because there's no connection to node id 0. In summary we need to
restart all pgppol children in this case.

Per bug 672.

Branch
------
V3_7_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=bea69519b4b14821ca7bed9c8e7ef28ad01a6fd3

Modified Files
--------------
src/main/pgpool_main.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list