From: Tom Lane <tgl@sss.pgh.pa.us>
To: Francisco Olarte <folarte@peoplecall.com>
Cc: Ajay Pratap <ajaypratap@drishti-soft.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: PostgreSQL ping/pong to client
Date: Wed, 17 Apr 2019 13:04:20 -0400
Message-ID: <4113.1555520660@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+bJJbyRp9Y8iQ3zDyJgBZDP4OsP4zA3uJ7=qCBEhC5dYoAWuw@mail.gmail.com>
References: <CABi=8qzPO-TOMsfRoWKVUtaAa=HzkPSCzYxo61CRsVfgT0hX4g@mail.gmail.com>
<70c44319-1ff8-8d26-ceba-db2b20d8496d@aklaver.com>
<CABi=8qwKpaXAUjQjbS=bSJq-LqEWRYCZD6C6dd3hzVyHQa2s5A@mail.gmail.com>
<CA+bJJbyRp9Y8iQ3zDyJgBZDP4OsP4zA3uJ7=qCBEhC5dYoAWuw@mail.gmail.com>
Francisco Olarte <folarte@peoplecall.com> writes:
> On Wed, Apr 17, 2019 at 4:49 PM Ajay Pratap <ajaypratap@drishti-soft.com> wrote:
>> Correction: I meant when my java application dies postgres should break all the connections that were associated with that peer.
> And how is the server supposed to detect that without keepalives? TCP
> is dessigned to survice for extended period of times without traffic,
> I used that a lot in the dial up times.
> And what makes you think keepalives are impactful and unrealistic? I
> use them a lot, they do not impact my workloads measurably.
If we tried to do something about that in the server code proper,
we'd basically be reinventing TCP keepalives --- probably badly.
And we couldn't do it at all without a protocol version break,
because the client-side code would also need to know about it.
Just use the keepalive facility.
regards, tom lane
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: tgl@sss.pgh.pa.us, folarte@peoplecall.com, ajaypratap@drishti-soft.com, adrian.klaver@aklaver.com
Subject: Re: PostgreSQL ping/pong to client
In-Reply-To: <4113.1555520660@sss.pgh.pa.us>
References: <CABi=8qzPO-TOMsfRoWKVUtaAa=HzkPSCzYxo61CRsVfgT0hX4g@mail.gmail.com> <70c44319-1ff8-8d26-ceba-db2b20d8496d@aklaver.com> <CABi=8qwKpaXAUjQjbS=bSJq-LqEWRYCZD6C6dd3hzVyHQa2s5A@mail.gmail.com> <CA+bJJbyRp9Y8iQ3zDyJgBZDP4OsP4zA3uJ7=qCBEhC5dYoAWuw@mail.gmail.com> <4113.1555520660@sss.pgh.pa.us>
* 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