pgsql: Try to read data from the socket in pqSendSome's write_failed pa

2020-06-07 Thread Tom Lane
Try to read data from the socket in pqSendSome's write_failed paths. Even when we've concluded that we have a hard write failure on the socket, we should continue to try to read data. This gives us an opportunity to collect any final error message that the backend might have sent before closing t

pgsql: Try to read data from the socket in pqSendSome's write_failed pa

2020-06-07 Thread Tom Lane
Try to read data from the socket in pqSendSome's write_failed paths. Even when we've concluded that we have a hard write failure on the socket, we should continue to try to read data. This gives us an opportunity to collect any final error message that the backend might have sent before closing t