Fix pg_upgrade file share violation on Windows created by the commit
Bruce Momjian <bruce@momjian.us>
Fix pg_upgrade file share violation on Windows created by the commit 4741e9afb93f0d769655b2d18c2b73b86f281010. This was done by adding an optional second log file parameter to exec_prog(), and closing and reopening the log file between system() calls. Backpatch to 9.2.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade/check.c | modified | +1 −1 |
| contrib/pg_upgrade/dump.c | modified | +1 −1 |
| contrib/pg_upgrade/exec.c | modified | +24 −7 |
| contrib/pg_upgrade/pg_upgrade.c | modified | +8 −8 |
| contrib/pg_upgrade/pg_upgrade.h | modified | +3 −3 |
| contrib/pg_upgrade/server.c | modified | +4 −5 |