OSDN Git Service

Tweak libpq so that if a backend ERROR message arrives while libpq
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Feb 2000 04:50:51 +0000 (04:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Feb 2000 04:50:51 +0000 (04:50 +0000)
commit58f481c4ff616fbe777881fe6b5a1a864b680678
tree5d7b82c73762051a8b7016c8fa2b853d28a061e7
parentf017d7eeeeb14a2b8690299bd5389c67bc82b3da
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.
src/interfaces/libpq/fe-exec.c