set statement_timeout for postgres

This commit is contained in:
Shish 2014-12-31 13:16:00 +00:00
parent 0fcfa49e75
commit 217559dc22

View file

@ -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;");
} }
/** /**