Doc: fix missing configuration example of clustering mode.
authorBo Peng <pengbo@sraoss.co.jp>
Tue, 15 Dec 2020 07:58:06 +0000 (16:58 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Tue, 15 Dec 2020 07:59:59 +0000 (16:59 +0900)
doc.ja/src/sgml/connection-settings.sgml
doc/src/sgml/connection-settings.sgml

index 006fe0abf7c34cc3a6ca8fb39c7332c14a3041a1..13ddd4eda87ed8c33f1fda3f1f898fdd6ad382e2 100644 (file)
@@ -660,7 +660,7 @@ backend_clustering_mode = 'slony'
  </sect2>
 
  <sect2 id="guc-replication-mode" xreflabel="native_replication_mode">
-  <title>ã\83\8dã\82£ティブレプリケーションモード</title>
+  <title>ã\83\8dã\82¤ティブレプリケーションモード</title>
 
   <para>
    <!--
@@ -668,6 +668,10 @@ backend_clustering_mode = 'slony'
    between <productname>PostgreSQL</> backends.
    -->
    このモードでは<productname>PostgreSQL</>間のデータレプリケーションを<productname>Pgpool-II</productname>に行わせます。
+   このモードを有効にするには<varname>backend_clustering_mode</varname>に'native_replication'を設定してください。
+    <programlisting>
+backend_clustering_mode = 'native_replication'
+    </programlisting>
   </para>
 
   <para>
@@ -1224,8 +1228,12 @@ backend_clustering_mode = 'slony'
   <title>スナップショットアイソレーションモード</title>
 
   <para>
-   ã\81\93ã\81®ã\83¢ã\83¼ã\83\89ã\81¯ã\80\81ã\83\8dã\82£ティブレプリケーションモードと似ていますが、更にノードをまたがる可視性の一貫性を保証します。
+   ã\81\93ã\81®ã\83¢ã\83¼ã\83\89ã\81¯ã\80\81ã\83\8dã\82¤ティブレプリケーションモードと似ていますが、更にノードをまたがる可視性の一貫性を保証します。
    実装は研究論文<xref linkend="mishima2009">に基づいています。
+   このモードを有効にするには<varname>backend_clustering_mode</varname>に'snapshot_isolation'を設定してください。
+    <programlisting>
+backend_clustering_mode = 'snapshot_isolation'
+    </programlisting>
    たとえば、以下のようなノードにまたがる可視性の一貫性がないことからくるノード間のデータ不整合を防ぐことができます。
    ここで、S1, S2はセッションを表し、N1, N2はPostgreSQLのサーバ1と2を表します。
    <programlisting>
index bec4c1157fa8a1f8bf3e93ff388d0c27df5186fd..606c876180ad756c7d0e0bdce85c8af07ff46a38 100644 (file)
@@ -882,8 +882,13 @@ backend_clustering_mode = 'native_replication'
   <para>
    This mode is similar to the native replication mode except it adds
    the visibility consistency among nodes. The implemenation is based
-   on a research paper <xref linkend="mishima2009">. For example, you
-   can avoid following inconsistency among nodes caused by the
+   on a research paper <xref linkend="mishima2009">.
+   To enable this mode, use 'snapshot_isolation' for
+   <varname>backend_clustering_mode</varname>.
+    <programlisting>
+backend_clustering_mode = 'snapshot_isolation'
+    </programlisting>
+   For example, you can avoid following inconsistency among nodes caused by the
    visibility inconsistency. Here S1 and S2 denotes sessions, while N1
    and N2 denotes the PostgreSQL server 1 and 2 respectively.
    <programlisting>