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

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

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

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



More information about the pgpool-committers mailing list