From: Taiki Koshino Date: Mon, 26 Jan 2026 06:57:15 +0000 (+0900) Subject: Add detail log about mismatch between backend_hostname and primary_conninfo host. X-Git-Url: http://git.postgresql.org/gitweb/static/session/%22https:/www.citusdata.com/%22?a=commitdiff_plain;p=pgpool2.git Add detail log about mismatch between backend_hostname and primary_conninfo host. --- diff --git a/doc.ja/src/sgml/connection-settings.sgml b/doc.ja/src/sgml/connection-settings.sgml index d70788340..7f0dd32a8 100644 --- a/doc.ja/src/sgml/connection-settings.sgml +++ b/doc.ja/src/sgml/connection-settings.sgml @@ -1743,6 +1743,16 @@ backend_clustering_mode = raw この場合は、稼働中かつDBノードIDがもっとも若いものが新しいメインノードになります。 + + レプリケーション構成において、スタンバイ側が参照するprimary_conninfoのhostと、Pgpool-IIがプライマリノードを識別するbackend_hostnameは同じ値を指定する必要があります。 + たとえば、プライマリノードがbackend0(ホスト名host0)、スタンバイノードがbackend1でbackend_application_nameがserver1の場合、backend1のpostgresql.confは次のように設定します。 + +primary_conninfo = 'host=host0 port=5432 user=postgres application_name=''server1''' + + この場合、backend0に対応するbackend_hostnameもhost0に設定してください。 + 一致していない場合Pgpool-IIがプライマリノードを識別できずストリーミングレプリケーションチェックなどがうまく動作しないことがあります。 + +