]> granicus.if.org Git - postgresql/commitdiff
Recent patches to pg_ctl broke "pg_ctl restart" for the case where no
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Sep 2008 13:14:07 +0000 (13:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Sep 2008 13:14:07 +0000 (13:14 +0000)
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

index 57cb6597939d35cbe85ddb7020be6eefb1362365..59f304b43814bacfe27078069182c4acac632f4e 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.92.2.4 2008/06/27 01:53:31 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.92.2.5 2008/09/30 13:14:07 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -624,6 +624,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;
                        }