pg_upgrade: fix CopyFile() on Windows to fail on file existence
Also fix getErrorText() to return the right error string on failure.
This behavior now matches that of other operating systems.
Report by Noah Misch
Backpatch through 9.1
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/c36064e438c738fb305919874f22ef1e9b755a63
Modified Files
--------------
contrib/pg_upgrade/file.c | 2 +-
contrib/pg_upgrade/util.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)