set statement_timeout for postgres
This commit is contained in:
parent
0fcfa49e75
commit
217559dc22
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ class PostgreSQL extends DBEngine {
|
||||||
*/
|
*/
|
||||||
public function init($db) {
|
public function init($db) {
|
||||||
$db->exec("SET application_name TO 'shimmie [{$_SERVER['REMOTE_ADDR']}]';");
|
$db->exec("SET application_name TO 'shimmie [{$_SERVER['REMOTE_ADDR']}]';");
|
||||||
|
$db->exec("SET statement_timeout TO 10000;");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue