aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-06-25 11:20:19 +0900
committerMichael Paquier <michael@paquier.xyz>2018-06-25 11:20:19 +0900
commit6eec6724ff4519ff67c9d402d65ad8a6c27e1d0e (patch)
treef69153be7ff7760fe74f48fab6f7c29b2d20c8b0 /contrib/postgres_fdw
parent6350dcc1f43154d404f52ab4e891ebecef0c2115 (diff)
downloadpostgresql-6eec6724ff4519ff67c9d402d65ad8a6c27e1d0e.tar.gz
postgresql-6eec6724ff4519ff67c9d402d65ad8a6c27e1d0e.zip
Address set of issues with errno handling
System calls mixed up in error code paths are causing two issues which several code paths have not correctly handled: 1) For write() calls, sometimes the system may return less bytes than what has been written without errno being set. Some paths were careful enough to consider that case, and assumed that errno should be set to ENOSPC, other calls missed that. 2) errno generated by a system call is overwritten by other system calls which may succeed once an error code path is taken, causing what is reported to the user to be incorrect. This patch uses the brute-force approach of correcting all those code paths. Some refactoring could happen in the future, but this is let as future work, which is not targeted for back-branches anyway. Author: Michael Paquier Reviewed-by: Ashutosh Sharma Discussion: https://postgr.es/m/20180622061535.GD5215@paquier.xyz
Diffstat (limited to 'contrib/postgres_fdw')
0 files changed, 0 insertions, 0 deletions