aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_interval.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2019-11-20 17:52:15 +1300
committerThomas Munro <tmunro@postgresql.org>2019-11-20 18:29:37 +1300
commit6969deeb8d3991cc533a5bcf451ae5eecaa9a517 (patch)
tree11c5e673f5c27edb19c08fd2fbf725cda73b956d /contrib/btree_gist/btree_interval.c
parent80e05a088e4edd421c9c0374d54d787c8a4c0d86 (diff)
downloadpostgresql-6969deeb8d3991cc533a5bcf451ae5eecaa9a517.tar.gz
postgresql-6969deeb8d3991cc533a5bcf451ae5eecaa9a517.zip
Handle ReadFile() EOF correctly on Windows.
When ReadFile() encounters the end of a file while reading from a synchronous handle with an offset provided via OVERLAPPED, it reports an error instead of returning 0. By not handling that (undocumented) result correctly, we caused some noisy LOG messages about an unknown error code. Repair. Back-patch to 12, where we started using pread()/ReadFile() with an offset. Reported-by: ZhenHua Cai, Amit Kapila Diagnosed-by: Juan Jose Santamaria Flecha Tested-by: Amit Kapila Discussion: https://postgr.es/m/CAA4eK1LK3%2BWRtpz68TiRdpHwxxWm%3D%2Bt1BMf-G68hhQsAQ41PZg%40mail.gmail.com
Diffstat (limited to 'contrib/btree_gist/btree_interval.c')
0 files changed, 0 insertions, 0 deletions