Setting statement_timeout

"Peter J. Holzer" <[email protected]> Wed, 20 Jun 2018 17:06:22 +0200
Newsgroups gmane.comp.db.postgresql.odbc
Message-ID <[email protected]>
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
| |   | [email protected]         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAlsqbWgACgkQ8g5IURL+
KF068Q/9H6HbSrgwMD8ke/0mXCLwGutoRXi4+0SNNxeQq57YlyHwxeSZHhem21bS
RR13ZnWCz3RRbmh/f+8ujmUKlf6J/r5Dt5tB+DlCjHyJaJT8JH5zv4WUQSSuB8dt
It6JM0+oyzwsUBKsgz8X24eN78ED3UKixM5wevxi+7OReGooWlT2HPnvpN2kg3Va
5MrD/pVmDphMrPdlXc6Y+ZTXyRhVr/sp8lgKzvt6HkKxTsWyPwvlNM2QoYEyCYxu
Susca6gHVmR0pK0XOVIO3646BTTzY69BcH60t2O8ict3nH+n4QAc1R6BfNwDz8Hb
pVs1abdOnhe1sepbyXW7I7MAGpGbiLJYbTs2q0MJQxHiqrWlePgO2lw1WEOXUT5z
Z60HUEp6dD14ze5c87pzmSYUChUgNh0nkpnU63HvPKelunIlmt/ODDMYv2bcPlim
6FoMCGurtrj+JplEs+NL7dbad+EqCic1CU32+DIXHHYQ8UN7hmeUQ8d/ni5RMeNw
WPu+QnOxWYj2lji7ClXy+4yxZvz1hRZsAHcOIMSnJVZUUH0NeqwkHC47PHMDx5aX
HUsnQM8KOrYF4f/8Ye1I+zksHY3/GWeV9QU5cKOu1/Ip6NSBApqBZgPVA6POt099
BM8jv7oZjxT42rAZInF/prVRMbYilI/BZrRR/rTRUBLsthxd1EQ=
=CaO7
-----END PGP SIGNATURE-----