Skip to content

Commit 35fb143

Browse files
committed
Fix pg_upgrade -O/-o options
Fix previous commit that added synchronous_commit=off, but broke -O/-o due to missing space in argument passing. Backpatch to 9.2.
1 parent fbe285a commit 35fb143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ start_postmaster(ClusterInfo *cluster)
214214
* the new cluster has to be recreated anyway.
215215
*/
216216
snprintf(cmd, sizeof(cmd),
217-
"\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d%s%s%s%s\" start",
217+
"\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d%s%s %s%s\" start",
218218
cluster->bindir, SERVER_LOG_FILE, cluster->pgconfig, cluster->port,
219219
(cluster->controldata.cat_ver >=
220220
BINARY_UPGRADE_SERVER_FLAG_CAT_VER) ? " -b" :

0 commit comments

Comments
 (0)