Tweak libpq so that if a backend ERROR message arrives while libpq

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

Commit: 58f481c4ff616fbe777881fe6b5a1a864b680678
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-02-24T04:50:51Z
Releases: 7.1.1
Tweak libpq so that if a backend ERROR message arrives while libpq
thinks the connection is idle, the error message is displayed as if
it were a NOTICE.  This seems better than dropping the message on
the floor ... particularly if the message is the backend telling us
why it's about to close the connection.  The previous behavior was
Backend message type 0x45 arrived while idle
pqReadData() -- backend closed the channel unexpectedly.
which is not real helpful.

Files

PathChange+/−
src/interfaces/libpq/fe-exec.c modified +37 −18