]> granicus.if.org Git - postgresql/commit
pg_upgrade: fix -j race condition on Windows
authorBruce Momjian <bruce@momjian.us>
Sat, 27 Jul 2013 19:00:58 +0000 (15:00 -0400)
committerBruce Momjian <bruce@momjian.us>
Sat, 27 Jul 2013 19:00:58 +0000 (15:00 -0400)
commitd83940a7f60f48292b3ae58dfda81b146eab1c50
treefebf7e09d7fbe755b5b9a8e570f65fa559f3f87e
parent61edd524017c4a3fa5f35e72e49f70f058be7a99
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.
contrib/pg_upgrade/exec.c