]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_upgrade: fix CopyFile() on Windows to fail on file existence
authorBruce Momjian <bruce@momjian.us>
Tue, 24 Nov 2015 22:18:28 +0000 (17:18 -0500)
committerBruce Momjian <bruce@momjian.us>
Tue, 24 Nov 2015 22:18:28 +0000 (17:18 -0500)
commitf91c4e326aa9c81223146b43b4167c29630155c4
treed783a397dd3aa235ad122a736701743b65deaa40
parent7acad954639df1c44877a37671339b8a7efce8c7
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
13 files changed:
contrib/pg_upgrade/check.c
contrib/pg_upgrade/controldata.c
contrib/pg_upgrade/exec.c
contrib/pg_upgrade/file.c
contrib/pg_upgrade/function.c
contrib/pg_upgrade/option.c
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/relfilenode.c
contrib/pg_upgrade/tablespace.c
contrib/pg_upgrade/util.c
contrib/pg_upgrade/version.c
contrib/pg_upgrade/version_old_8_3.c