Change the PostgreSQL connection timeout parameter name.
authorpengbo <Bo Peng>
Fri, 19 Jan 2018 04:40:08 +0000 (13:40 +0900)
committerpengbo <Bo Peng>
Fri, 19 Jan 2018 04:40:08 +0000 (13:40 +0900)
15 files changed:
common.php
conf/pgmgt.conf.php
config.php
innerSystemCatalog.php
install/checkParameter.php
install/defaultParameter.php
install/lang/en.lang.php
install/lang/es.lang.php
install/lang/fr.lang.php
install/lang/ja.lang.php
install/lang/zh_cn.lang.php
lang/es.lang.php
queryCache.php
status.php
systemDb.php

index c4d787cbf540efd411e1152f18b92cd5531a91ec..f45f979eb059ddaa30990677ee9439fb0cce7ce7 100644 (file)
@@ -77,8 +77,8 @@ if (! defined('_PGPOOL2_LANG') ||
 }
 
 // PostgreSQL connect timeout, default is 10
-if (! defined('_PGPOOL2_CONNECT_TIMEOUT')) {
-    define('_PGPOOL2_CONNECT_TIMEOUT', 10);
+if (! defined('_PGPOOL2_PG_CONNECT_TIMEOUT')) {
+    define('_PGPOOL2_PG_CONNECT_TIMEOUT', 10);
 }
 
 /**
@@ -161,7 +161,7 @@ function NodeActive($nodeNum)
                        $params['health_check_database'] : 'template1',
         'user'     => $params['health_check_user'],
         'password' => $params['health_check_password'],
-        'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT
+        'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT,
     ));
 
     if ($conn == FALSE) {
@@ -192,7 +192,7 @@ function NodeStandby($nodeNum)
         'dbname'   => 'template1',
         'user'     => $params['sr_check_user'],
         'password' => $params['sr_check_password'],
-        'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT,
+        'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT,
     ));
 
     if ($conn == FALSE) {
@@ -231,7 +231,7 @@ function isSuperUser($user_name)
         'dbname'   => 'template1',
         'user'     => $_SESSION[SESSION_LOGIN_USER],
         'password' => $_SESSION[SESSION_LOGIN_USER_PASSWORD],
-        'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT,
+        'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT,
     ));
 
     // Try to connect health check user
@@ -242,7 +242,7 @@ function isSuperUser($user_name)
             'dbname'   => 'template1',
             'user'     => $params['health_check_user'],
             'password' => $params['health_check_password'],
-            'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT
+            'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT,
         ));
     }
     if ($conn === FALSE) { return NULL; }
index 53530fa7cebe9f38d0323f540aef2c49fcfcfc03..51220818e0c75405f15cee0a95b9c2fdcdfd8fae 100644 (file)
@@ -14,5 +14,5 @@ define('_PGPOOL2_LOG_FILE', '/tmp/pgpool.log');
 define('_PGPOOL2_PCP_DIR', '/usr/bin');
 define('_PGPOOL2_PCP_HOSTNAME', 'localhost');
 define('_PGPOOL2_STATUS_REFRESH_TIME', '0');
-define('_PGPOOL2_CONNECT_TIMEOUT', '10');
+define('_PGPOOL2_PG_CONNECT_TIMEOUT', '10');
 ?>
index 3e2a730899ddf40b1034097563a27f8e64535578..2e370988f745133b16b3b1b6e0b07ff61d925cc2 100644 (file)
@@ -103,8 +103,8 @@ $params['pcp_refresh_time']   = (defined('_PGPOOL2_STATUS_REFRESH_TIME')) ?
 
 // PostgreSQL connect timeout. Default is 10.
 // This is also defined in common.php.
-$params['pg_connect_timeout']   = (defined('_PGPOOL2_CONNECT_TIMEOUT')) ?
-    _PGPOOL2_CONNECT_TIMEOUT : 10;
+$params['pg_connect_timeout']   = (defined('_PGPOOL2_PG_CONNECT_TIMEOUT')) ?
+    _PGPOOL2_PG_CONNECT_TIMEOUT : 10;
 
 $tpl->assign('status', NULL);
 switch ( $action ) {
@@ -291,7 +291,7 @@ function writePgmtConf($pgmgtConfigFile)
     write($fp, '_PGPOOL2_PCP_DIR',             $params['pcp_client_dir']);
     write($fp, '_PGPOOL2_PCP_HOSTNAME',        $params['pcp_hostname']);
     write($fp, '_PGPOOL2_STATUS_REFRESH_TIME', $params['pcp_refresh_time']);
-    write($fp, '_PGPOOL2_CONNECT_TIMEOUT', $params['pg_connect_timeout']);
+    write($fp, '_PGPOOL2_PG_CONNECT_TIMEOUT', $params['pg_connect_timeout']);
 
     $str = "?>\n";
     fputs($fp, $str);
index 5788d422a21de0941652c2ddf43a01221a008165..95b5c2524095b8ac457fa429e83985c71d9fc596 100644 (file)
@@ -53,7 +53,7 @@ $conn = openDBConnection(array(
     'dbname'   => 'template1',
     'user'     => $params['health_check_user'],
     'password' => $params['health_check_password'],
-    'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT,
+    'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT,
 ));
 
 $rs = execQuery($conn, 'SHOW pool_status');
index b7602809262392709d600c4d3b0c449116ad594a..a7b6b50fbe4aa5e151a5b87dc26cb4a07b4f3def 100644 (file)
@@ -208,7 +208,7 @@ $msgPgConnectTimeout = '';
 if (isset($_POST['pg_connect_timeout']) && $_POST['pg_connect_timeout']) {
     $pg_connect_timeout = $_POST['pg_connect_timeout'];
 } else {
-    $pg_connect_timeout =  _PGPOOL2_CONNECT_TIMEOUT;
+    $pg_connect_timeout =  _PGPOOL2_PG_CONNECT_TIMEOUT;
 }
 
 $msgPhpPgsql= '';
@@ -260,7 +260,7 @@ if (!$error && $action == 'next') {
     write($fp, '_PGPOOL2_PCP_HOSTNAME',        $_POST['pcp_hostname']);
     write($fp, '_PGPOOL2_PCP_TIMEOUT',         $_POST['pcp_timeout']);
     write($fp, '_PGPOOL2_STATUS_REFRESH_TIME', $_POST['pcp_refreshTime']);
-    write($fp, '_PGPOOL2_CONNECT_TIMEOUT', $_POST['pg_connect_timeout']);
+    write($fp, '_PGPOOL2_PG_CONNECT_TIMEOUT', $_POST['pg_connect_timeout']);
 
     fputs($fp, "?>"."\n");
 
index bea5247722caa6c11a2dd173d4455722a164c8cd..ee892344cef6a4a77f34a0343890320e2c2cd628 100644 (file)
@@ -37,6 +37,6 @@ define("_PGPOOL2_PCP_DIR", "/usr/local/bin");
 define("_PGPOOL2_PCP_HOSTNAME", "localhost");
 define("_PGPOOL2_PCP_TIMEOUT", "10");
 define("_PGPOOL2_STATUS_REFRESH_TIME", "0");
-define("_PGPOOL2_CONNECT_TIMEOUT", "10");
+define("_PGPOOL2_PG_CONNECT_TIMEOUT", "10");
 
 ?>
index 143330817dba8b9630cd324abe0e283cf169fcdc..fdb49cbd3066955c524813b8a3fcb7f99662485f 100644 (file)
@@ -50,7 +50,7 @@ $message = array(
     'strPgpoolLogFile' => 'pgpool Logfile',
     'strPcpDir' => 'PCP directory',
     'strPcpTimeout' => 'PCP Timeout',
-    'strPgConnectTimeout' => 'Postgresql Connect Timeout',
+    'strPgConnectTimeout' => 'PostgreSQL Connect Timeout',
     'strPcpHostName' => 'PCP Hostname',
     'strPcpRefreshTime' => 'Refresh Time',
     'strDependencies' => 'Dependencies',
index f322afbb9ed9b44d1bc5ae26a6b2e3bf33d8e2a0..2b067059833374063cd0edc7328d152b4be6d5c1 100644 (file)
@@ -50,7 +50,7 @@ $message = array(
     'strPgpoolLogFile' => 'Archivo de logs para pgpool',
     'strPcpDir' => 'Directorio PCP ',
     'strPcpTimeout' => 'PCP Timeout',
-    'strPgConnectTimeout' => 'Postgreql connect Timeout',
+    'strPgConnectTimeout' => 'PostgreSQL Connect Timeout',
     'strPcpHostName' => 'Nombre del host PCP',
     'strPcpRefreshTime' => 'Tiempo de actualización',
     'msgCongratulations' => '¡Felicitaciones, herramienta de administración está instalada!',
index bf991a249731f007e2ac42a1497651e802281625..8fb7d079906e0e38968cc85e5530bb902c0e8abb 100644 (file)
@@ -47,7 +47,7 @@ $message = array(
     'strPgpoolLogFile' => 'Journal Pgpool',
     'strPcpDir' => 'Répertoire PCP',
     'strPcpTimeout' => 'Délai d\'attente PCP',
-    'strPgConnectTimeout' => 'Délai d\'attente Postgresql',
+    'strPgConnectTimeout' => 'Délai d\'attente PostgreSQL',
     'strPcpHostName' => 'Nom d\'hôte PCP',
     'strPcpRefreshTime' => 'Temps de rafraichissement',
     'msgCongratulations' => 'Félicitations. L\'outil d\'administration de Pgpool a été installé&nbsp;!',
index 22c0416ac839567d93875993fee1baa4d6df4bac..bd2d11e228e5e7cca94770d96dd403f15f55f37f 100644 (file)
@@ -50,7 +50,7 @@ $message = array(
     'strPgpoolLogFile' => 'pgpoolログファイル',
     'strPcpDir' => 'PCPディレクトリ',
     'strPcpTimeout' => 'PCPタイムアウト',
-    'strPgConnectTimeout' => 'Postgreslタイムアウト',
+    'strPgConnectTimeout' => 'PostgreSQL 接続タイムアウト',
     'strPcpHostName' => 'PCPホスト名',
     'strPcpRefreshTime' => '更新間隔(0で自動更新しない)',
     'strDependencies' => '依存 PHP モジュール',
index 9b815cbfcbb5f83469e095e4dbfb087706ff2973..d2f461858306d1b27ff73f46fa1dc3f1659ceddc 100644 (file)
@@ -48,7 +48,7 @@ $message = array(
     'strPgpoolLogFile' => 'pgpool 日志文件',
     'strPcpDir' => 'PCP 目录',
     'strPcpTimeout' => 'PCP 超时',
-    'strPgConnectTimeout' => 'Postgresql 超时',
+    'strPgConnectTimeout' => 'PostgreSQL 连接超时',
     'strPcpHostName' => 'PCP 主机名',
     'strPcpRefreshTime' => '刷新时间',
     'msgCongratulations' => '恭喜,pgpool 管理工具安装完成。',
index b1b771c3d5d6ee6e9d98c58ee067e2b514630345..b88026540a9effb4014a5710585a63796d07fb94 100644 (file)
@@ -296,7 +296,7 @@ $message = array(
     'strPcpDir' => 'PCP Directorio',
     'strPcpHostName' => 'PCP Nombre del Host',
     'strPcpRefreshTime' => 'Tiempo de actualización',
-    'strPgConnectTimeout' => 'Postgresql Espera',
+    'strPgConnectTimeout' => 'PostgreSQL Espera',
     'strPcpTimeout' => 'PCP Espera',
     'strPgConfFile' => 'Archivo pgpool.conf',
     'strPgConfSetting' => 'Configuración pgpool.conf',
index e3e794bfc4b839d15acee0761c86435adc1d1a16..2ffef4e83b8e20b8541cab770b878e9a779c651a 100644 (file)
@@ -66,7 +66,7 @@ $sysDbParam['port']     = $sysDbParam['system_db_port'];
 $sysDbParam['dbname']   = $sysDbParam['system_db_dbname'];
 $sysDbParam['user']     = $sysDbParam['system_db_user'];
 $sysDbParam['password'] = $sysDbParam['system_db_password'];
-$sysDbParam['connect_timeout'] = _PGPOOL2_CONNECT_TIMEOUT;
+$sysDbParam['connect_timeout'] = _PGPOOL2_PG_CONNECT_TIMEOUT;
 
 $sysDbSchema = $sysDbParam['system_db_schema'];
 
index 3b1850526c1e4cc1a6d95b11762c084bb21b91ae..95ad30256930dd5f38ef5ec0a51950112361c345 100644 (file)
@@ -532,7 +532,7 @@ function _doPgCtl($nodeNumber, $pg_ctl_action)
         'dbname'   => 'template1',
         'user'     => $_SESSION[SESSION_LOGIN_USER],
         'password' => $_SESSION[SESSION_LOGIN_USER_PASSWORD],
-        'connect_timeout' => _PGPOOL2_CONNECT_TIMEOUT,
+        'connect_timeout' => _PGPOOL2_PG_CONNECT_TIMEOUT,
     ));
 
     if ($conn == FALSE) {
index 8ad4d09dafb9376dc177d2b9186d6ca2db81a9e9..38affb75e2992791136e68ca762d18f58fa23689 100644 (file)
@@ -50,7 +50,7 @@ $sysDbParam['port']     = $sysDbParam['system_db_port'];
 $sysDbParam['dbname']   = $sysDbParam['system_db_dbname'];
 $sysDbParam['user']     = $sysDbParam['system_db_user'];
 $sysDbParam['password'] = $sysDbParam['system_db_password'];
-$sysDbParam['connect_timeout'] = _PGPOOL2_CONNECT_TIMEOUT;
+$sysDbParam['connect_timeout'] = _PGPOOL2_PG_CONNECT_TIMEOUT;
 
 $conn = openDBConnection($sysDbParam);
 if ($conn == FALSE) {