[pgpool-committers: 7413] pgpool: Enhance follow_primary.sh generation in pgpool_setup.

Tatsuo Ishii ishii at sraoss.co.jp
Wed Jan 20 17:28:05 JST 2021

Enhance follow_primary.sh generation in pgpool_setup.

In the generated follow primary script pcp_recovery_node was used to
sync standby with new primary node.  However it is sufficient in
follow primary process to just restart standby with new recovery
configuration redirected to the new primary because we use the
"latest" timeline in the configuration file.

Moreover, from PostgreSQL 13, even restarting standby is not
needed. Just changing the recovery configuration and reloading is
enough. With these changes it is expected that the follow primary
process could be significantly faster than before.



Modified Files
src/test/pgpool_setup.in | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)

More information about the pgpool-committers mailing list