}
// 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);
}
/**
$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) {
'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) {
'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
'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; }
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');
?>
// 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 ) {
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);
'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');
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= '';
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");
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");
?>
'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',
'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!',
'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é !',
'strPgpoolLogFile' => 'pgpoolログファイル',
'strPcpDir' => 'PCPディレクトリ',
'strPcpTimeout' => 'PCPタイムアウト',
- 'strPgConnectTimeout' => 'Postgreslタイムアウト',
+ 'strPgConnectTimeout' => 'PostgreSQL 接続タイムアウト',
'strPcpHostName' => 'PCPホスト名',
'strPcpRefreshTime' => '更新間隔(0で自動更新しない)',
'strDependencies' => '依存 PHP モジュール',
'strPgpoolLogFile' => 'pgpool 日志文件',
'strPcpDir' => 'PCP 目录',
'strPcpTimeout' => 'PCP 超时',
- 'strPgConnectTimeout' => 'Postgresql 超时',
+ 'strPgConnectTimeout' => 'PostgreSQL 连接超时',
'strPcpHostName' => 'PCP 主机名',
'strPcpRefreshTime' => '刷新时间',
'msgCongratulations' => '恭喜,pgpool 管理工具安装完成。',
'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',
$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'];
'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) {
$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) {