aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
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:30:56 +1300
commit2189f49c420f2bf49dfac122f9fbae51c3565594 (patch)
tree173b44acb3ec27c2975e7a302c3d893acbc354e6 /src/tutorial/syscat.source
parent135026653d450c28d458576a023dffc0e3cb0bf9 (diff)
downloadpostgresql-2189f49c420f2bf49dfac122f9fbae51c3565594.tar.gz
postgresql-2189f49c420f2bf49dfac122f9fbae51c3565594.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 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions