diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-22 18:41:47 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-22 18:41:47 -0400 |
commit | b53942e59644d79c2df7951523a50dc4d2d97668 (patch) | |
tree | 1f17fc8c7d43cea745e190208f91ad9dd0718ad2 /src/backend/utils/adt/numeric.c | |
parent | 2f51f424bb362dadeb4fabf03845961e563da4ba (diff) | |
download | postgresql-b53942e59644d79c2df7951523a50dc4d2d97668.tar.gz postgresql-b53942e59644d79c2df7951523a50dc4d2d97668.zip |
Ensure libpq reports a suitable error message on unexpected socket EOF.
The EOF-detection logic in pqReadData was a bit confused about who should
set up the error message in case the kernel gives us read-ready-but-no-data
rather than ECONNRESET or some other explicit error condition. Since the
whole point of this situation is that the lower-level functions don't know
there's anything wrong, pqReadData itself must set up the message. But
keep the assumption that if an errno was reported, a message was set up at
lower levels.
Per bug #11712 from Marko Tiikkaja. It's been like this for a very long
time, so back-patch to all supported branches.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions