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

Tatsuo Ishii ishii at sraoss.co.jp
Sun Dec 13 11:41:11 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
------
V4_1_STABLE

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

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



More information about the pgpool-committers mailing list