diff options
author | Bruce Momjian <bruce@momjian.us> | 2012-08-07 13:10:44 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2012-08-07 13:10:44 -0400 |
commit | fbcfa90bb8ceb77f7763b6ae16bcbb777849ccee (patch) | |
tree | a6db366b3c269b62597980009d043a84deefb213 /contrib/pg_upgrade/dump.c | |
parent | 3a42a3ffd898114e6e19dafe0911b23921b288f4 (diff) | |
download | postgresql-fbcfa90bb8ceb77f7763b6ae16bcbb777849ccee.tar.gz postgresql-fbcfa90bb8ceb77f7763b6ae16bcbb777849ccee.zip |
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.
Diffstat (limited to 'contrib/pg_upgrade/dump.c')
-rw-r--r-- | contrib/pg_upgrade/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/dump.c b/contrib/pg_upgrade/dump.c index 571792b1d40..07a3b548a9f 100644 --- a/contrib/pg_upgrade/dump.c +++ b/contrib/pg_upgrade/dump.c @@ -23,7 +23,7 @@ generate_old_dump(void) * --binary-upgrade records the width of dropped columns in pg_class, and * restores the frozenid's for databases and relations. */ - exec_prog(true, true, UTILITY_LOG_FILE, + exec_prog(true, true, UTILITY_LOG_FILE, NULL, SYSTEMQUOTE "\"%s/pg_dumpall\" --port %d --username \"%s\" " "--schema-only --binary-upgrade %s > \"%s\" 2>> \"%s\"" SYSTEMQUOTE, new_cluster.bindir, old_cluster.port, os_info.user, |