pg_upgrade: fix CopyFile() on Windows to fail on file existence
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade/file.c | modified | +1 −1 |
| contrib/pg_upgrade/util.c | modified | +2 −0 |