From 69360a5e83dbb0dc9dcc2608db043e558e8edb8c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 30 Sep 2008 13:14:15 +0000 Subject: [PATCH] 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. --- src/bin/pg_ctl/pg_ctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index e29710f6e4..ec2b256b2a 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -589,6 +589,8 @@ read_post_opts(void) *arg1 = '\0'; /* terminate so we get only program name */ post_opts = arg1 + 1; /* point past whitespace */ } + else + post_opts = ""; if (postgres_path == NULL) postgres_path = optline; } -- 2.39.5