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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/fbcfa90bb8ceb77f7763b6ae16bcbb777849ccee
Modified Files
--------------
contrib/pg_upgrade/check.c | 2 +-
contrib/pg_upgrade/dump.c | 2 +-
contrib/pg_upgrade/exec.c | 31 ++++++++++++++++++++++++-------
contrib/pg_upgrade/pg_upgrade.c | 16 ++++++++--------
contrib/pg_upgrade/pg_upgrade.h | 6 +++---
contrib/pg_upgrade/server.c | 9 ++++-----
6 files changed, 41 insertions(+), 25 deletions(-)