pgsql: pg_upgrade: fix -j race condition on Windows

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_upgrade: fix -j race condition on Windows
Date: 2013-07-27 19:01:06
Message-ID: E1V39jm-0000we-2i@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d83940a7f60f48292b3ae58dfda81b146eab1c50

Modified Files
--------------
contrib/pg_upgrade/exec.c | 46 ++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 41 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-07-28 11:20:47 pgsql: Message style improvements
Previous Message Bruce Momjian 2013-07-26 17:52:09 pgsql: pg_upgrade docs: don't use cluster for binary/lib