pgpool2.git / summary / log / commit / refs
commit f7d452339fd3534bbe0ff3d0cab70b97285e5505
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Fri Oct 16 06:01:53 2015 +0000
Add caution about JDBC driver version regarding app_name_redirect_preference_list.
doc/pgpool-en.html | 10 ++++++++++
doc/pgpool-ja.html | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/doc/pgpool-en.html b/doc/pgpool-en.html
index db4576470..a8b594f29 100644
--- a/doc/pgpool-en.html
+++ b/doc/pgpool-en.html
@@ -2441,6 +2441,16 @@ database_redirect_preference_list = 'postgres:primary,mydb[01]:1,mydb2:standby'
you can set "application name:node id" pair to specify the node id when the application is used.
"Application name" is a name specified by a client when it connects to database.
You can use it in PostgreSQL 9.0 or later.
+ </p>
+ <p>
+ <blockquote>
+ <font color="red">Caution: </font>
+ JDBC driver postgresql-9.3 or before does not send the application name in the startup packet
+ even if application name is specified for the JDBC driver option "ApplicationName" and "assumeMinServerVersion=9.0" is specified and cannot use this feature.
+ If you want to use the feature through JDBC, please use postgresql-9.4 or later version of driver.
+ </blockquote>
+ </p>
+ <p>
For example, application of psql command is "psql".
pgpool-II recognize application names only when clients sends a start up packet.
Clients can send application names later on but pgpool-II will not recognize them.
diff --git a/doc/pgpool-ja.html b/doc/pgpool-ja.html
index 67ec2340b..1e8eda937 100644
--- a/doc/pgpool-ja.html
+++ b/doc/pgpool-ja.html
@@ -2539,6 +2539,15 @@ database_redirect_preference_list = 'postgres:primary,mydb[01]:1,mydb2:standby'
<p>
アプリケーション名によって負荷分散をしたいノード番号を、"アプリケーション名:ノード番号"で指定します。
アプリケーション名とは、クライアントが接続時に指定する名称で、PostgreSQL 9.0以降で使用できます。
+</p>
+ <p>
+ <blockquote>
+ <font color="red">注意: </font>
+ JDBCドライバのpostgresql-9.3以前のバージョンでは、JDBCドライバの"ApplicationName" と "assumeMinServerVersion=9.0"オプションを指定してもスタートアップパケットの中にapplication_nameを含まないため、この機能を利用できません。
+ postgresql-9.4 以降のJDBCドライバをお使いください。
+ </blockquote>
+ </p>
+ <p>
たとえばpsqlコマンドのアプリケーション名は"psql"です。
pgpool-IIは、クライアントが接続に送信するスタートアップパケットに含まれるアプリケーション名だけを認識します。
接続後に変更されたアプリケーション名は認識されません。
[parent: ad43fce6988b]