Docs: add note to detach_false_primary configuration parameter.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 24 Feb 2019 12:35:40 +0000 (21:35 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 24 Feb 2019 12:35:40 +0000 (21:35 +0900)
To use this feature, sr_check_user must be super user or in pg_monitor
group.

Per bug 469.

doc.ja/src/sgml/failover.sgml
doc/src/sgml/failover.sgml

index e1f3817fa5df81d09dc4994524748f4e8d7098e2..c465a32fb15df6fa52cb54d661d1b9df594a7bfd 100644 (file)
@@ -673,6 +673,34 @@ onにすると、不正なプライマリを切り離します。
 <productname>Pgpool-II</productname>が起動した時、不正なプライマリのチェックは<productname>Pgpool-II</productname>のメインプロセスの中で一度だけ行われます。
 もし<xref linkend="guc-sr-check-period">が0より大きければ、不正なプライマリのチェックは、ストリーミングレプリケーションの遅延チェックと同じタイミングで行われます。
        </para>
+
+       <note>
+         <para>
+<!--
+           <xref linkend="guc-sr-check-user"> must
+             be <productname>PostgreSQL</productname> super user or
+             in "pg_monitor" group to use this feature. To
+             make <xref linkend="guc-sr-check-user"> in pg_monitor
+             group, execute following SQL command
+             by <productname>PostgreSQL</productname> super user
+             (replace "sr_check_user" with the setting
+             of <xref linkend="guc-sr-check-user">):
+-->
+この機能を使うためには、<xref linkend="guc-sr-check-user">は<productname>PostgreSQL</productname>のスーパーユーザーであるか、"pg_monitor"グループに所属していなければなりません。
+<xref linkend="guc-sr-check-user">をpg_monitorグループに所属させるには、以下のSQLコマンドを<productname>PostgreSQL</productname>スーパーユーザーで実行してください("sr_check_user"を<xref linkend="guc-sr-check-user">の設定値で置き換えてください)
+             <programlisting>
+GRANT pg_monitor TO sr_check_user;
+             </programlisting>
+<!--
+             For <productname>PostgreSQL</productname> 9.6, there's
+             no pg_monitor group
+             and <xref linkend="guc-sr-check-user"> must
+             be <productname>PostgreSQL</productname> super user.
+-->
+<productname>PostgreSQL</productname> 9.6にはpg_monitorグループがないので、<xref linkend="guc-sr-check-user">は<productname>PostgreSQL</productname>のスーパーユーザーでなければなりません。
+         </para>
+       </note>
+
         <para>
 <!--
           This parameter is only applicable in the streaming replication mode.
index 01cc0f56402ff48bbecca3f4ea7258a43210b669..033b6922ac01d4bc098e6763ba236bfa2c415b58 100644 (file)
          than 0, the false primaries checking will be performed at
          the same timing of streaming replication delay checking.
        </para>
+
+       <note>
+         <para>
+           <xref linkend="guc-sr-check-user"> must
+             be <productname>PostgreSQL</productname> super user or
+             in "pg_monitor" group to use this feature. To
+             make <xref linkend="guc-sr-check-user"> in pg_monitor
+             group, execute following SQL command
+             by <productname>PostgreSQL</productname> super user
+             (replace "sr_check_user" with the setting
+             of <xref linkend="guc-sr-check-user">):
+             <programlisting>
+GRANT pg_monitor TO sr_check_user;
+             </programlisting>
+             For <productname>PostgreSQL</productname> 9.6, there's
+             no pg_monitor group
+             and <xref linkend="guc-sr-check-user"> must
+             be <productname>PostgreSQL</productname> super user.
+         </para>
+       </note>
+
         <para>
           This parameter is only applicable in the streaming replication mode.
         </para>