Cancel running query if it is detected that the connection to the client is

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 5d8a894e3095b2f602e901c19689f3176bf20543
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2011-12-09T12:21:36Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/libpq/pqcomm.c modified +5 −1
src/backend/tcop/postgres.c modified +12 −0
src/backend/utils/init/globals.c modified +1 −0
src/include/miscadmin.h modified +7 −0