ODBC Driver doesn't managed keepalives; keepalives_idle; keepalives_count parameters

From: "Angeletti, Andrea" <aangeletti(at)minsait(dot)com>
To: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Cc: "acea(dot)cloud" <acea(dot)cloud(at)accenture(dot)com>, "Gonnella, Fabiano" <fgonnella(at)minsait(dot)com>
Subject: ODBC Driver doesn't managed keepalives; keepalives_idle; keepalives_count parameters
Date: 2026-11-23 14:02:10
Message-ID: VI0P193MB2916404D7767A554F18736B9DC452@VI0P193MB2916.EURP193.PROD.OUTLOOK.COM
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hello, we have a product that use ODBC Postgres 32-bit Unicode (plsqlodbc version 16.0.7) to connect to DB Postgres 15.0.9 and to prevent network timeout for heavy batch query on database (10 minutes TCP idle timeout) we need to send TCP Keepalive packets from client application every 60 seconds.

In order to send a tiny keepalive "heartbeat" packet every 60 seconds as showed into documentation https://www.postgresql.org/docs/current/libpq-connect.html#<https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS:~:text=keepalives,available%3B%20on%20other%20systems%2C%20it%20has%20no%20effect> we have to set these parameters keepalives=1;keepalives_idle=60;keepalives_interval=5;keepalives_count=3 into ODBC driver.

But ODBC Driver gui seems managed the KeepaliveTime;KeepaliveInterval only (see screenshot below) and not Keepalives; Keepalives_idle; Keepalives_count and the final URL String connection used by our product doesn't contains Keepalives; Keepalives_idle; Keepalives_count.

How do we overcome this ODBC Driver limitation?
Regards

Andrea

[cid:image011(dot)png(at)01DD7B5B(dot)9C471F10]

Andrea Angeletti
Project Manager
EIM - Infrastructure & Networking

[cid:image001(dot)png(at)01DD7B52(dot)49413D90]

Italy
Via del Serafico 200, 00142 - Roma
M 3476057807
aangeletti(at)minsait(dot)com<mailto:aangeletti(at)minsait(dot)com> - minsait.com<http://www.indracompany.com/>

[https://portaldemarca.indra.es/sites/default/files/youtube_0.gif]<http://www.youtube.com/user/theindracompany?feature=chclk>
[https://portaldemarca.indra.es/sites/default/files/facebook_0.gif]<http://www.facebook.com/indracompany>
[https://portaldemarca.indra.es/sites/default/files/twitter_0.gif]<http://twitter.com/#%21/indracompany>
[https://portaldemarca.indra.es/sites/default/files/linkedin_0.gif]<http://www.linkedin.com/company/indra>
[https://portaldemarca.indra.es/sites/default/files/google_0.gif]<https://plus.google.com/107135201985474086995/posts>
[https://portaldemarca.indra.es/sites/default/files/neo-icon.gif]<http://www.indracompany.com/es/blogneo>

[https://portaldemarca.indra.es/sites/default/files/3eco_1.gif]

________________________________

Este correo electr?nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci?n de car?cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilizaci?n, divulgaci?n y/o copia sin autorizaci?n est? prohibida en virtud de la legislaci?n vigente. En el caso de haber recibido este correo electr?nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv?o a la direcci?n electr?nica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.

Browse pgsql-odbc by date

  From Date Subject
Previous Message Nick Gorham 2026-11-15 13:19:51 Re: Fwd: Problem retrieving data