From: Tom Lane Date: Tue, 30 Sep 2008 13:14:28 +0000 (+0000) Subject: Recent patches to pg_ctl broke "pg_ctl restart" for the case where no X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=064fffaf2b75425293945167cf5fbbf183ef0db0;p=users%2Fbernd%2Fpostgres.git Recent patches to pg_ctl broke "pg_ctl restart" for the case where no command-line options had been given to the postmaster; and just plain broke it altogether in 8.1 and 8.0. Per report from KaiGai Kohei. --- diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 34ae0f0642..f3f0e69fd0 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -546,8 +546,13 @@ do_start(void) *arg1 = '\0'; /* terminate so we get only program name */ post_opts = arg1 + 1; /* point past whitespace */ } + else + post_opts = ""; +#ifdef NOT_USED + /* this never actually worked pre-8.2 */ if (postgres_path == NULL) postgres_path = optline; +#endif } else post_opts = optline;