set a limit on how long a Clark Kent query can run
authorGalen Charlton <gmc@esilibrary.com>
Fri, 20 Mar 2015 20:55:22 +0000 (20:55 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 20 Mar 2015 20:55:22 +0000 (20:55 +0000)
commit82f146f93bfafa88fd1ccf25a11e35b1cf919e47
treee2f362612f59e0cadcb9ff1f5fa22645f59dc72b
parent333b00f78f54981b8ef9274ab25ace0619b4ef51
set a limit on how long a Clark Kent query can run

Reporter queries that take too long to run are very often
simply malformed, and in extreme cases can chew through
a lot of temp disk space on PostgreSQL servers.  To avoid
this, Clark Kent by defaults only allows a query to run
for up to 10 minutes by setting a local statement timeout.

The value of the timeout can be tweaked by setting the a
new command-line option for clark-kent.pl, --statement-timeout.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/reporter/clark-kent.pl