Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVegq-0007QB-9s for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Jun 2018 15:06:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVegn-0000Gu-Ct for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Jun 2018 15:06:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVegn-0000GO-6T for pgsql-odbc@lists.postgresql.org; Wed, 20 Jun 2018 15:06:29 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVegi-0003Bt-HL for pgsql-odbc@postgresql.org; Wed, 20 Jun 2018 15:06:27 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id A45BD1BB8; Wed, 20 Jun 2018 17:06:22 +0200 (CEST) Date: Wed, 20 Jun 2018 17:06:22 +0200 From: "Peter J. Holzer" To: pgsql-odbc@postgresql.org Subject: Setting statement_timeout Message-ID: <20180620150622.a2xx44imwckmlomj@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kmt5vds7zxz3mex6" Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --kmt5vds7zxz3mex6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 =3D 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 --=20 _ | 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 --kmt5vds7zxz3mex6 Content-Type: application/pgp-signature; name="signature.asc" -----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----- --kmt5vds7zxz3mex6--