PostgreSQL server does not notice that clients have disappeared

From: Al Eridani <al(dot)eridani(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PostgreSQL server does not notice that clients have disappeared
Date: 2015-01-23 20:08:09
Message-ID: CAN-56bgTt9LiQZLAUR3xL73rFNPnifpbEq4oj1LL9N+uEbiwzg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

More than five years ago Tom Lane wrote

"It's not easy to tell whether a client has disconnected (particularly if
the network stack is unhelpful, which is depressingly often true).
Postgres will cancel a query if it gets told that the connection's been
dropped, but it will only discover this when an attempt to output to the
client fails. It does not spend cycles looking aside to see if the
connection has dropped when it is doing something that doesn't involve
output to the client."

Is this still true on the 9.x versions? Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Smith 2015-01-23 20:20:46 Re: In need of some JSONB examples ?
Previous Message ktm@rice.edu 2015-01-23 20:06:57 Re: [SQL] commit inside a function failing