pgsql: Cancel running query if it is detected that the connection to th - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Cancel running query if it is detected that the connection to th
Date
Msg-id E1RYzXS-0003yA-Lg@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Add const qualifiers to node inspection functions
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't set reachedMinRecoveryPoint during crash recovery. In cras