[pgpool-committers: 7568] pgpool: Fix pgpool_setup so that it fail back to full restore if failed

Tatsuo Ishii ishii at sraoss.co.jp
Wed Mar 31 16:19:37 JST 2021


Fix pgpool_setup so that it fail back to full restore if failed in restarting.

While taking care of "[pgpool-general: 7456] Expected behaviour after pcp_detach_node ?"

https://www.pgpool.net/pipermail/pgpool-general/2021-March/007514.html

I noticed that restarting target server in follow primary script could
fail.  This could happen when former primary goes to down status using
pcp_detach_node.  The former primary will not start due to timeline
and LSN divergence.  To fix this, fail back to full restore using
pg_recovery if restarting server.

Branch
------
V4_2_STABLE

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

Modified Files
--------------
src/test/pgpool_setup.in | 37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)



More information about the pgpool-committers mailing list