Fix pg_verify_checksums on Windows.
Amit Kapila <akapila@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_verify_checksums/pg_verify_checksums.c | modified | +1 −1 |
Discussion
- pg_verify_checksums vs windows 7 messages · 2018-08-29 → 2018-08-31