When closure of the backend connection is detected during pqFlush,
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-exec.c | modified | +60 −11 |
| src/interfaces/libpq/fe-misc.c | modified | +10 −9 |