From: Taiki Koshino Date: Wed, 17 Sep 2025 07:15:11 +0000 (+0900) Subject: Update doc about "Setting up PostgreSQL standby" in "8.2. Pgpool-II + Watchdog Setup... X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/config.php?a=commitdiff_plain;h=feef87e3a85ac9175ff05cb4df4e32c57c84760b;p=pgpool2.git Update doc about "Setting up PostgreSQL standby" in "8.2. Pgpool-II + Watchdog Setup Example". Add a note that when setting up a standby without online recovery, do not write primary_conninfo to postgresql.auto.conf. Discussion: https://github.com/pgpool/pgpool2/issues/67 Backpatch-through: v4.2 --- diff --git a/doc.ja/src/sgml/example-cluster.sgml b/doc.ja/src/sgml/example-cluster.sgml index f5c01ac4f..9cbfb3ce5 100644 --- a/doc.ja/src/sgml/example-cluster.sgml +++ b/doc.ja/src/sgml/example-cluster.sgml @@ -402,16 +402,38 @@ wal_log_hints = on - スタンバイでpg_basebackupを実行して、プライマリのデータディレクトリのバックアップを生成します。(この方法を利用する場合は、手動でレプリケーションスロットを作成してください。) + Pgpool-IIのオンラインリカバリ機能()を使用して、スタンバイサーバを自動的にセットアップします。 - Pgpool-IIのオンラインリカバリ機能()を使用して、スタンバイサーバを自動的にセットアップします。 + スタンバイでpg_basebackupを実行して、プライマリのデータディレクトリのバックアップを生成します。 + + + オンラインリカバリを使用せず手動でスタンバイをセットアップする場合は次の注意点があります。 + + + + 手動でレプリケーションスロットを作成する必要があります。 + + + + + + + pg_basebackup を実行する際には -R オプションを指定しないでください。primary_conninfo、 recovery_target_timeline、 primary_slot_name は postgresql.auto.conf ではなく、$PGDATA/myrecovery.conf に記載し、postgresql.conf に以下を追記してください。 + + + + +include_if_exists = 'myrecovery.conf' + + + この設定例では、Pgpool-IIの構成が完了した後に、でPgpool-IIのオンラインリカバリを使用してスタンバイサーバをセットアップします。 diff --git a/doc/src/sgml/example-cluster.sgml b/doc/src/sgml/example-cluster.sgml index 2811af8ed..580626901 100644 --- a/doc/src/sgml/example-cluster.sgml +++ b/doc/src/sgml/example-cluster.sgml @@ -417,18 +417,43 @@ wal_log_hints = on - use pg_basebackup to backup the data directory of the primary from the standby. + use Pgpool-II's online recovery feature + () to automatically + setup a standby server. - use Pgpool-II's online recovery feature - () to automatically - setup a standby server. + use pg_basebackup to backup the data directory of the primary from the standby. + + + + If you manually set up standby without using online recovery, please note the following: + + + + You must manually create the replication slots. + + + + + + + Do not specify the -R option when running pg_basebackup. + Write primary_conninfo, recovery_target_timeline, and primary_slot_name in $PGDATA/myrecovery.conf, not in postgresql.auto.conf, and add the following to postgresql.conf. + + + + +include_if_exists = 'myrecovery.conf' + + + + In this example, we use Pgpool-II's online recovery to setup the standby server