]> granicus.if.org Git - postgresql/commit
pg_upgrade: fix CopyFile() on Windows to fail on file existence
authorBruce Momjian <bruce@momjian.us>
Tue, 24 Nov 2015 22:18:27 +0000 (17:18 -0500)
committerBruce Momjian <bruce@momjian.us>
Tue, 24 Nov 2015 22:18:27 +0000 (17:18 -0500)
commitc36064e438c738fb305919874f22ef1e9b755a63
tree38f3cb4d89945f69d83bac6b9dcf6e583494b945
parent6df62ef43ef3455882ee2829986aae08f3e64aea
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
contrib/pg_upgrade/file.c
contrib/pg_upgrade/util.c