[pgpool-committers: 7643] pgpool: Fix watchdog_setup.

Tatsuo Ishii ishii at sraoss.co.jp
Fri Apr 30 19:51:29 JST 2021


Fix watchdog_setup.

watchdog_setup creates database cluster entity under pgpool0. In other
pgpool nodes's pgpool.conf just has the port number for PostgreSQL in
pgpool0.  But backend_data_directory remains their own PostgreSQL
cluster. For example:

backend_data_directory0 = '/home/t-ishii/work/Pgpool-II/current/x/pgpool2/data0'

This is fine until online recovery runs. If it referrers to the
database cluster directory, which is not correct of course.  Fix this
by replacing database cluster directories with symlinks to
pgppol/data0 and so on. This will reduce disk space.

Branch
------
V4_0_STABLE

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

Modified Files
--------------
src/test/watchdog_setup.in | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)



More information about the pgpool-committers mailing list