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

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

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

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



More information about the pgpool-committers mailing list