Enhance follow_primary.sh generation in pgpool_setup.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 20 Jan 2021 08:17:02 +0000 (17:17 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 20 Jan 2021 08:17:02 +0000 (17:17 +0900)
commitc4008c9d5af2723ea37ed106474965acc3a2cbed
treee0a90cd4b83662296af7f14a1d8a237001f29a9a
parent8145a08c1ef806bae6d84c9c4e35fca33d55d2b0
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.
src/test/pgpool_setup.in