From c709fabcdec7e49eea54e008936832882a2b003a Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 15 Dec 2020 16:58:06 +0900 Subject: [PATCH] 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' - ネィティブレプリケーションモード + ネイティブレプリケーションモード このモードではPostgreSQL間のデータレプリケーションをPgpool-IIに行わせます。 + このモードを有効にするにはbackend_clustering_modeに'native_replication'を設定してください。 + +backend_clustering_mode = 'native_replication' + @@ -1224,8 +1228,12 @@ backend_clustering_mode = 'slony' スナップショットアイソレーションモード - このモードは、ネィティブレプリケーションモードと似ていますが、更にノードをまたがる可視性の一貫性を保証します。 + このモードは、ネイティブレプリケーションモードと似ていますが、更にノードをまたがる可視性の一貫性を保証します。 実装は研究論文に基づいています。 + このモードを有効にするにはbackend_clustering_modeに'snapshot_isolation'を設定してください。 + +backend_clustering_mode = 'snapshot_isolation' + たとえば、以下のようなノードにまたがる可視性の一貫性がないことからくるノード間のデータ不整合を防ぐことができます。 ここで、S1, S2はセッションを表し、N1, N2はPostgreSQLのサーバ1と2を表します。 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' 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 . For example, you - can avoid following inconsistency among nodes caused by the + on a research paper . + To enable this mode, use 'snapshot_isolation' for + backend_clustering_mode. + +backend_clustering_mode = 'snapshot_isolation' + + 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. -- 2.39.5