When closure of the backend connection is detected during pqFlush,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f0ae1e8d10d7a38029cd0009063fa5131dce7937
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 1999-05-28T01:54:53Z
Releases: 7.1.1
When closure of the backend connection is detected during pqFlush,
do the right thing: look for a NOTICE message from the backend before we
close our side of the socket.  6.4 libpq did not reliably print the backend's
hara-kiri message, 'The Postmaster has informed me ...', because it only
did the right thing if connection closure was detected during a read
attempt instead of a write attempt.

Files

PathChange+/−
src/interfaces/libpq/fe-exec.c modified +60 −11
src/interfaces/libpq/fe-misc.c modified +10 −9