Skip site navigation (1) Skip section navigation (2)

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

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 toth
Date: 2011-12-09 12:26:54
Message-ID: E1RYzXS-0003yA-Lg@gemulon.postgresql.org (view raw or flat)
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(-)

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2011-12-09 13:55:51
Subject: pgsql: Don't set reachedMinRecoveryPoint during crash recovery. Incras
Previous:From: Peter EisentrautDate: 2011-12-07 19:47:56
Subject: pgsql: Add const qualifiers to node inspection functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group