diff options
author | Amit Kapila <akapila@postgresql.org> | 2018-08-31 15:45:09 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2018-08-31 15:45:09 +0530 |
commit | 762a16572bb5d9be6c9c53c9ecd29288da213d02 (patch) | |
tree | e64a6acabe08ecc0aff2247bbc419880e23587c5 /src/tutorial/funcs.c | |
parent | 40e981391395ae93aadfaf08cd343af65cc6252b (diff) | |
download | postgresql-762a16572bb5d9be6c9c53c9ecd29288da213d02.tar.gz postgresql-762a16572bb5d9be6c9c53c9ecd29288da213d02.zip |
Fix pg_verify_checksums on Windows.
To verify the checksums, we open the file in text mode which doesn't work
on Windows as WIN32 treats Control-Z as EOF in files opened in text mode.
This leads to "short read of block .." error in some cases.
Fix it by opening the files in the binary mode.
Author: Amit Kapila
Reviewed-by: Magnus Hagander
Backpatch-through: 11
Discussion: https://postgr.es/m/CAA4eK1+LOnzod+h85FGmyjWzXKy-XV1FYwEyP-Tky2WpD5cxwA@mail.gmail.com
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions