From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Cancel running query if it is detected that the connection to th
Date: Fri, 09 Dec 2011 12:26:54 +0000
Message-ID: <E1RYzXS-0003yA-Lg@gemulon.postgresql.org> (raw)
Cancel running query if it is detected that the connection to the client is
lost. The only way we detect that at the moment is when write() fails when
we try to write to the socket.
Florian Pflug with small changes by me, reviewed by Greg Jaskiewicz.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/5d8a894e3095b2f602e901c19689f3176bf20543
Modified Files
--------------
src/backend/libpq/pqcomm.c | 6 +++++-
src/backend/tcop/postgres.c | 12 ++++++++++++
src/backend/utils/init/globals.c | 1 +
src/include/miscadmin.h | 7 +++++++
4 files changed, 25 insertions(+), 1 deletions(-)
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-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Cancel running query if it is detected that the connection to th
In-Reply-To: <E1RYzXS-0003yA-Lg@gemulon.postgresql.org>
References: <E1RYzXS-0003yA-Lg@gemulon.postgresql.org>
* 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