pgpool2.git / summary / log / commit / refs
commit c709fabcdec7e49eea54e008936832882a2b003a
Author: Bo Peng <pengbo@sraoss.co.jp>
Date: Tue Dec 15 07:58:06 2020 +0000
Doc: fix missing configuration example of clustering mode.
doc.ja/src/sgml/connection-settings.sgml | 12 ++++++++++--
doc/src/sgml/connection-settings.sgml | 9 +++++++--
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/doc.ja/src/sgml/connection-settings.sgml b/doc.ja/src/sgml/connection-settings.sgml
index 006fe0abf..13ddd4eda 100644
--- a/doc.ja/src/sgml/connection-settings.sgml
+++ b/doc.ja/src/sgml/connection-settings.sgml
@@ -660,7 +660,7 @@ backend_clustering_mode = 'slony'
</sect2>
<sect2 id="guc-replication-mode" xreflabel="native_replication_mode">
- <title>ネィティブレプリケーションモード</title>
+ <title>ネイティブレプリケーションモード</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>
- このモードは、ネィティブレプリケーションモードと似ていますが、更にノードをまたがる可視性の一貫性を保証します。
+ このモードは、ネイティブレプリケーションモードと似ていますが、更にノードをまたがる可視性の一貫性を保証します。
実装は研究論文<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>
diff --git a/doc/src/sgml/connection-settings.sgml b/doc/src/sgml/connection-settings.sgml
index bec4c1157..606c87618 100644
--- a/doc/src/sgml/connection-settings.sgml
+++ b/doc/src/sgml/connection-settings.sgml
@@ -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>
[parent: e267c7f0a373]