pg_upgrade: properly detect file copy failure on Windows
Previously, file copy failures were ignored on Windows due to an
incorrect return value check.
Report by Manu Joye
Backpatch through 9.1
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/b4c4220ede3048662c746123b8af2a9101a1b313
Modified Files
--------------
contrib/pg_upgrade/file.c | 6 +++++-
contrib/pg_upgrade/pg_upgrade.h | 2 --
2 files changed, 5 insertions(+), 3 deletions(-)