From ae53bcfb69d356ae121f661e4c099833729dbc3e Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sun, 30 Jan 2011 00:23:30 +0000 Subject: [PATCH] Add mention about pgpool-walrecrunning. --- doc/pgpool-en.html | 34 +++++++++++++++++++++++++++------- doc/pgpool-ja.html | 27 +++++++++++++++++++++------ 2 files changed, 48 insertions(+), 13 deletions(-) diff --git a/doc/pgpool-en.html b/doc/pgpool-en.html index 5ce22fcc8..0ef0d1abe 100644 --- a/doc/pgpool-en.html +++ b/doc/pgpool-en.html @@ -7,7 +7,7 @@ -Last modified: Mon Jan 24 13:30:13 JST 2011 +Last modified: Sun Jan 30 09:14:28 JST 2011 @@ -185,17 +185,16 @@ will install pgpool-II. (If you use Solaris or FreeBSD, replace make with gmake)
Installing pgpool_regclass

-If you are using PostgreSQL 8.0 or later, installing pgpool_regclass is strongly -recommended, as it is used internally by pgpool-II. +If you are using PostgreSQL 8.0 or later, installing pgpool_regclass function on all PostgreSQL to be accessed by pgpool-II is strongly recommended, as it is used internally by pgpool-II. Without this, handling of duplicate table names in different schema might cause trouble (temporary tables aren't a problem).

-# cd pgpool-II-x.x.x/sql/pgpool-regclass
-# make
-# make install
-# psql -f pgpool-regclass.sql template1
+cd pgpool-II-x.x.x/sql/pgpool-regclass
+make
+make install
+psql -f pgpool-regclass.sql template1
 

@@ -206,6 +205,27 @@ execution of "psql -f pgpool-regclass.sql template1", as this template database will be cloned to create new databases.

+
Installing pgpool_regclass
+
+

+If you are using PostgreSQL 9.0 or later along with streaming replication, you need to install pgpool_walrecrunning function on all PostgreSQL to be accessed by pgpool-II. +

+

+

+cd pgpool-II-x.x.x/sql/pgpool-walrecrunning
+make
+make install
+psql -f pgpool-walrecrunning.sql template1
+
+

+

+Executing pgpool-walrecrunning.sql should be performed on every database accessed +with pgpool-II. +You do not need to do this for a database created after the +execution of "psql -f pgpool-regclass.sql template1", as this template database +will be cloned to create new databases. +

+

Configuring pgpool-II

diff --git a/doc/pgpool-ja.html b/doc/pgpool-ja.html index 5fbb9e3b4..bab54ea60 100644 --- a/doc/pgpool-ja.html +++ b/doc/pgpool-ja.html @@ -8,7 +8,7 @@ -Last modified: Sun Jan 16 19:27:15 JST 2011 +Last modified: Sun Jan 30 09:23:45 JST 2011 @@ -167,18 +167,33 @@ make install PostgreSQL 8.0以降を使用している場合は、pgpool-IIが内部で使用するC関数pgpool_regclassをインストールします。 この関数がインストールされていなくてもpgpool-IIは動作しますが、違うスキーマで同じテーブル名を定義していて、SQL文の中でスキーマ名を省略している場合に、不具合が生じることがあります(一時テーブルを除く)。 したがって、可能ならばpgpool_regclassをインストールすることをお勧めします。 - +このインストールは、pgpool-IIがアクセスする予定のすべてのPostgreSQLサーバで実施してください。
-# cd pgpool-II-x.x.x/sql/pgpool-regclass
-# make
-# make install
-# psql -f pgpool-regclass.sql template1
+cd pgpool-II-x.x.x/sql/pgpool-regclass
+make
+make install
+psql -f pgpool-regclass.sql template1
 
pgpool-regclass.sqlの実行は、pgpool-II経由で利用するデータベース毎に必要になります。 ただし、"psql -f pgpool-regclass.sql template1"を実行後に作成されたデータベースでは自動的にpgpool-regclass.sqlの内容が反映されているので、新たにpgpool-regclass.sqlを実行する必要はありません。

+
pgpool_walrecunningのインストール +
+

+PostgreSQL 9.0以降を使用していて、ストリーミングレプリケーションを利用したい場合は、C関数pgpool_walrecrunningをインストールします。 +このインストールは、pgpool-IIがアクセスする予定のすべてのPostgreSQLサーバで実施してください。 +

+cd pgpool-II-x.x.x/sql/pgpool-walrecrunning
+make
+make install
+psql -f pgpool-walrecrunning.sql template1
+
+pgpool-walrecrunning.sqlの実行は、pgpool-II経由で利用するデータベース毎に必要になります。 +ただし、"psql -f pgpool-walrecrunning.sql template1"を実行後に作成されたデータベースでは自動的にpgpool-walrecrunning.sqlの内容が反映されているので、新たにpgpool-walrecrunning.sqlを実行する必要はありません。 +

+

以上でインストールが完了します(GNU makeが必要なので、SolarisやFreeBSDなどでは -- 2.39.5