[pgpool-committers: 7864] pgpool: Fix follow primary command creation in pgpool_setup.

Tatsuo Ishii ishii at sraoss.co.jp
Fri Jun 25 20:05:34 JST 2021


Fix follow primary command creation in pgpool_setup.

If the target node of the follow primary script is primary and the
server version is before PostgreSQL 12, then the follow primary
command fails because there's no recovery.conf (12 or later is fine,
because "standby.signal" and "myrecovery.conf" are created).

To fix this, if server version is before 12, rename recovery.done to
recovery.conf.

Also this should fix 034.promote_node failure with PostgreSQL 11 or
before.

Branch
------
V4_2_STABLE

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

Modified Files
--------------
src/test/pgpool_setup.in | 4 ++++
1 file changed, 4 insertions(+)



More information about the pgpool-committers mailing list