From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-odbc@postgresql.org
Subject: Setting statement_timeout
Date: Wed, 20 Jun 2018 17:06:22 +0200
Message-ID: <20180620150622.a2xx44imwckmlomj@hjp.at> (raw)
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@hjp.at | management tools.
__/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/;
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: Setting statement_timeout
In-Reply-To: <20180620150622.a2xx44imwckmlomj@hjp.at>
References: <20180620150622.a2xx44imwckmlomj@hjp.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox