From 95f64d02cd153f4671512d97959759e395a8aef5 Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Mon, 13 May 2013 15:44:07 +0900 Subject: [PATCH] Add the parameters added for pgpool-II 3.3. (wd_lifecheck_dbname, wd_lifecheck_user, wd_lifecheck_password) --- common.php | 7 +++++++ definePgpoolConfParam.php | 15 +++++++++++++++ templates/help/en/pgconfig.tpl | 25 +++++++++++++++++++++++++ templates/help/ja/pgconfig.tpl | 24 ++++++++++++++++++++++++ templates/pgconfig.tpl | 23 +++++++++++++++++++++++ 5 files changed, 94 insertions(+) diff --git a/common.php b/common.php index 1cddd7b..b149210 100644 --- a/common.php +++ b/common.php @@ -542,6 +542,13 @@ function paramExists($param) switch ($param) { /* Add */ + // params added in 3.3 + case 'wd_lifecheck_dbname': + case 'wd_lifecheck_user': + case 'wd_lifecheck_password': + $add_version = 3.3; + break; + // params added in 3.2 case 'health_check_max_retries': case 'health_check_retry_delay': diff --git a/definePgpoolConfParam.php b/definePgpoolConfParam.php index 2298047..29145b1 100644 --- a/definePgpoolConfParam.php +++ b/definePgpoolConfParam.php @@ -598,6 +598,21 @@ $pgpoolConfigParam[$key]['type'] = 'C'; $pgpoolConfigParam[$key]['default'] = 'SELECT 1'; $pgpoolConfigParam[$key]['regexp'] = $anyelse; +$key = 'wd_lifecheck_dbname'; +$pgpoolConfigParam[$key]['type'] = 'C'; +$pgpoolConfigParam[$key]['default'] = 'template1'; +$pgpoolConfigParam[$key]['regexp'] = $anyelse; + +$key = 'wd_lifecheck_user'; +$pgpoolConfigParam[$key]['type'] = 'C'; +$pgpoolConfigParam[$key]['default'] = 'nobody'; +$pgpoolConfigParam[$key]['regexp'] = $anyelse; + +$key = 'wd_lifecheck_password'; +$pgpoolConfigParam[$key]['type'] = 'C'; +$pgpoolConfigParam[$key]['default'] = ''; +$pgpoolConfigParam[$key]['regexp'] = $anyelse; + # Other pgpool Connection Settings $key = 'other_pgpool_hostname'; diff --git a/templates/help/en/pgconfig.tpl b/templates/help/en/pgconfig.tpl index 8316f83..916ddaf 100644 --- a/templates/help/en/pgconfig.tpl +++ b/templates/help/en/pgconfig.tpl @@ -1662,6 +1662,31 @@ black_function_list = 'nextval,setval,lastval,currval' + + +

wd_lifecheck_dbnam(string) * + +

The database name connected for checking pgpool-II. Default is "template1"

+ + + + + +

wd_lifecheck_user(string) * + +

The user name to check pgpool-II. This user must exist in all the PostgreSQL backends. + Default is "nobody" .

+ + + + + +

wd_lifecheck_query (string) * + +

The password of the user to check pgpool-II. Default is "".

+ + + Virtual IP address diff --git a/templates/help/ja/pgconfig.tpl b/templates/help/ja/pgconfig.tpl index 29b4a00..28ed2a4 100644 --- a/templates/help/ja/pgconfig.tpl +++ b/templates/help/ja/pgconfig.tpl @@ -1734,6 +1734,30 @@ black_function_list = 'nextval,setval,lastval,currval' + + +

wd_lifecheck_dbnam(string) * + +

pgpool-II の死活監視を行なうのに接続するデータベースです。 デフォルトは "template1" です。

+ + + + + +

wd_lifecheck_user(string) * + +

pgpool-II の死活監視を行なうユーザです。 デフォルトは "nobody" です。

+ + + + + +

wd_lifecheck_query (string) * + +

pgpool-II の死活監視を行なうユーザのパスワードです。

+ + + Virtual IP address diff --git a/templates/pgconfig.tpl b/templates/pgconfig.tpl index c49c59b..0d79bfc 100644 --- a/templates/pgconfig.tpl +++ b/templates/pgconfig.tpl @@ -1277,6 +1277,29 @@ function delOtherWatchdog(num){ + {if paramExists('wd_lifecheck_dbname')} + + + +
wd_lifecheck_dbname (string) * + + + + + + +
wd_lifecheck_user (string) * + + + + + + +
wd_lifecheck_password (string) * + + + {/if} + Virtual IP address -- 2.39.5