OSDN Git Service

When closure of the backend connection is detected during pqFlush,
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 May 1999 01:54:53 +0000 (01:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 May 1999 01:54:53 +0000 (01:54 +0000)
commitf0ae1e8d10d7a38029cd0009063fa5131dce7937
tree956a7576fd28cf549772139240a5157085b35c7c
parent615e77ede2f3cd25cac7725112e31fb38753e270
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.
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-misc.c