Setting statement_timeout

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Setting statement_timeout
Date: 2018-06-20 15:06:22
Message-ID: 20180620150622.a2xx44imwckmlomj@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Since 9.5 the Postgresql ODBC driver sets a default statement timeout.
According to Hiroshi the specific value (30 seconds) isn't set in the
driver but "from apps or middlewares". We have two applications which
issue queries which may take more than 30 seconds. One of which was
developed in house, so we can simply override the default in the
application (just issue "set statement_timeout = 299000" after
connecting), but the other one is commercial closed source software.

So my question is: Is there a way to change this setting globally (via
ODBC configuration, registry, whatever)? Either setting it to a specific
value or disabling the timeout altogether would be fine.

BTW, "Connect settings" on page 2 of the datasource settings looks
promising, but these commands are sent before the timeout is set. So
while I can change a timeout there, it is overridden by the default.

hp

--
_ | Peter J. Holzer | we build much bigger, better disasters now
|_|_) | | because we have much more sophisticated
| | | hjp(at)hjp(dot)at | management tools.
__/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>

Browse pgsql-odbc by date

  From Date Subject
Next Message Jürgen E. Fischer 2018-06-27 15:35:42 Patch to support service parameter & german translation
Previous Message BGoebel 2018-06-06 10:13:52 Re: psqlodbc driver issue with Win10 Update 1803