pg_upgrade: fix -j race condition on Windows

Bruce Momjian <bruce@momjian.us>

Commit: d83940a7f60f48292b3ae58dfda81b146eab1c50
Author: Bruce Momjian <bruce@momjian.us>
Date: 2013-07-27T19:00:58Z
Releases: 9.3.0
pg_upgrade: fix -j race condition on Windows
Pg_Upgrade cannot write the command string to the log file and then call
system() to write to the same file without causing occasional file-share
errors on Windows.  So instead, write the command string to the log file
after system(), in those cases.
Backpatch to 9.3.

Files

PathChange+/−
contrib/pg_upgrade/exec.c modified +41 −5