]> 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)
commit815fcd050fbe18976c51af59116d60a6be5f3e41
tree1b82c4f80bd451480bd3362a84e244c0df313699
parent5691de6c95836e0cef3a2fbb3ce61ce80ddecc69
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