pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
To: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Piyush Anand <piyush.anand@ericsson.com>
Cc: Neeraj Gupta G <neeraj.g.gupta@ericsson.com>
Subject: Re: Connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy
Date: Tue, 05 Mar 2024 12:54:59 +0100
Message-ID: <ffc11479cfb22e1053072e391fc8d16662d1634d.camel@cybertec.at> (raw)
In-Reply-To: <PAWPR07MB1009513749E6F6EE032261A83AE222@PAWPR07MB10095.eurprd07.prod.outlook.com>
References: <PAWPR07MB10095D5E7FF7D783427860B09AE222@PAWPR07MB10095.eurprd07.prod.outlook.com>
	<PAWPR07MB10095A5D76879A0F32F229C72AE222@PAWPR07MB10095.eurprd07.prod.outlook.com>
	<ZecCANH7xt0DQHw3@pureos>
	<PAWPR07MB1009513749E6F6EE032261A83AE222@PAWPR07MB10095.eurprd07.prod.outlook.com>

On Tue, 2024-03-05 at 11:37 +0000, M Tarkeshwar Rao wrote:
> We want to use libpq library APIs only. Is there any support of keepalive at client side?

Yes, there is.

Just add "keepalives_idle=60" to the connection string.  See
https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-KEEPALIVES-IDLE

Yours,
Laurenz Albe





view thread (5+ messages)

Message-ID: <ffc11479cfb22e1053072e391fc8d16662d1634d.camel@cybertec.at>
Permalink:  ../ffc11479cfb22e1053072e391fc8d16662d1634d.camel@cybertec.at/
Also on:    postgresql.org/message-id/ffc11479cfb22e1053072e391fc8d16662d1634d.camel@cybertec.at

 · 

reply

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, m.tarkeshwar.rao@ericsson.com, guru@unixarea.de, piyush.anand@ericsson.com, neeraj.g.gupta@ericsson.com
  Subject: Re: Connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy
  In-Reply-To: <ffc11479cfb22e1053072e391fc8d16662d1634d.camel@cybertec.at>
  References: <PAWPR07MB10095D5E7FF7D783427860B09AE222@PAWPR07MB10095.eurprd07.prod.outlook.com> <PAWPR07MB10095A5D76879A0F32F229C72AE222@PAWPR07MB10095.eurprd07.prod.outlook.com> <ZecCANH7xt0DQHw3@pureos> <PAWPR07MB1009513749E6F6EE032261A83AE222@PAWPR07MB10095.eurprd07.prod.outlook.com> <ffc11479cfb22e1053072e391fc8d16662d1634d.camel@cybertec.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