pgsql: Cancel running query if it is detected that the connection to th

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Cancel running query if it is detected that the connection to th
Date: 2011-12-09 12:26:54
Message-ID: E1RYzXS-0003yA-Lg@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-12-09 13:55:51 pgsql: Don't set reachedMinRecoveryPoint during crash recovery. In cras
Previous Message Peter Eisentraut 2011-12-07 19:47:56 pgsql: Add const qualifiers to node inspection functions