From b137edaed1ce16763644d0d6415ab702aef1946a Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Mon, 10 Dec 2012 23:52:24 +0200 Subject: [PATCH] pg_upgrade: fix handling of -O/-o arguments, need space before user options --- contrib/pg_upgrade/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pg_upgrade/server.c b/contrib/pg_upgrade/server.c index 49d4c8f..0940e00 100644 --- a/contrib/pg_upgrade/server.c +++ b/contrib/pg_upgrade/server.c @@ -214,7 +214,7 @@ start_postmaster(ClusterInfo *cluster) * the new cluster has to be recreated anyway. */ snprintf(cmd, sizeof(cmd), - "\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d%s%s%s%s\" start", + "\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d%s%s %s%s\" start", cluster->bindir, SERVER_LOG_FILE, cluster->pgconfig, cluster->port, (cluster->controldata.cat_ver >= BINARY_UPGRADE_SERVER_FLAG_CAT_VER) ? " -b" : -- 1.8.0.1