From 217559dc22f8054531de6c4da1bfae9fb3725fe7 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 31 Dec 2014 13:16:00 +0000 Subject: [PATCH] set statement_timeout for postgres --- core/database.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/database.class.php b/core/database.class.php index 9ad847d9..fa77dbec 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -147,6 +147,7 @@ class PostgreSQL extends DBEngine { */ public function init($db) { $db->exec("SET application_name TO 'shimmie [{$_SERVER['REMOTE_ADDR']}]';"); + $db->exec("SET statement_timeout TO 10000;"); } /**