Allow to run pgpool_setup on PostgreSQL 15.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 23 Jun 2022 01:01:35 +0000 (10:01 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 23 Jun 2022 01:01:35 +0000 (10:01 +0900)
commit8c1c5dc43d91191f7808c7ea639ca2ced875389d
tree1010e311c947a249e3c7e0c852da546190bc7a01
parent582e1beee52fb0bfd63090e3d8686f23194f5c8b
Allow to run pgpool_setup on PostgreSQL 15.

basebackup.sh created by pgpool_setup uses pg_start_backup() and
pg_stop_backup().  PostgreSQL 15 renamed them. But there's more
problem. The renamed functions (pg_backup_start() and
pg_backup_stop()) must be called within a same connection. Adapting
these requires non-trivial changes. So I decided to rewrite the code
to not use pg_start_backup() and pg_stop_backup() so that it uses
pg_basebackup command instead.

Per https://www.pgpool.net/mantisbt/view.php?id=757
src/test/pgpool_setup.in