diff options
author | Amit Kapila <akapila@postgresql.org> | 2018-08-31 15:25:42 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2018-08-31 15:25:42 +0530 |
commit | bb60f2cb6ed8361fbf18b92d312776046d9b0103 (patch) | |
tree | 9cf6b99112719ff5602a203af8ba93b5108e2abe /contrib/postgres_fdw/sql | |
parent | 2e39f69b6621bd3d67f650a5647fd0412819712d (diff) | |
download | postgresql-bb60f2cb6ed8361fbf18b92d312776046d9b0103.tar.gz postgresql-bb60f2cb6ed8361fbf18b92d312776046d9b0103.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 'contrib/postgres_fdw/sql')
0 files changed, 0 insertions, 0 deletions