Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support statement_timeout in postgresql as a property #1495
I'm submitting a ...
Describe the issue
Last week we had an incident at work, we had a GUI with a search that hadn't been tested
This led to that the users retried the heavy queries, and that led to that all resources on the
Postgresql have a statement timeout, so that the database can terminate queries that are
It would be convenient if this setting can be exposed as a jdbc url parameter, that way it would
Can't seem to find when statement_timeout got introduced, but it seems to be old.
I took a peek at this and the related PR and looks like this is already possible via the generic
See here for the PGJDBC connection property: https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/PGProperty.java#L62
See here for more details on the backend