Re: pg_ctl restart just appends to command line instead of regenerating original cmd - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: pg_ctl restart just appends to command line instead of regenerating original cmd
Date
Msg-id Pine.LNX.4.30.0106201654080.725-100000@peter.localdomain
Whole thread Raw
In response to pg_ctl restart just appends to command line instead of regenerating original cmd  (pgsql-bugs@postgresql.org)
Responses Re: pg_ctl restart just appends to command line instead of regenerating original cmd  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
> Patricia Holben (pholben@greatbridge.com) reports a bug with a severity of 3

> Then when "pg_ctl restart" is executed, the "pg_ctl status" will display:
>     pg_ctl: postmaster is running (pid: 14635)
>     Command line was:
>     /usr/bin/postmaster '-D' '/var/lib/pgsql/data' '-D' '/var/lib/pgsql/data'
>
> A subsequent "pg_ctl restart" causes the next "pg_ctl status" to display:
>     pg_ctl: postmaster is running (pid: 14635)
>     Command line was:
>     /usr/bin/postmaster '-D' '/var/lib/pgsql/data' '-D' '/var/lib/pgsql/data' '-D' '/var/lib/pgsql/data'

Actually, only the -D option is repeated.  The patch below might fix it,
but please check all the other start and restart modes, too (with/without
-o, especially).

--- pg_ctl.sh   Sat Apr 21 13:23:58 2001
+++ pg_ctl.sh.new       Wed Jun 20 17:03:07 2001
@@ -316,7 +316,7 @@
         eval set X "$POSTOPTS"; shift
     fi

-    set X -D "$PGDATA" ${1+"$@"}; shift
+    export PGDATA

     if [ -n "$logfile" ]; then
         "$po_path" "$@" </dev/null >>$logfile 2>&1 &

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: Steve Sullivan
Date:
Subject: Memory leak in 7.0.3 JDBC driver
Next
From: Peter Eisentraut
Date:
Subject: Re: Bug: the index on INTEGER field does not work (PG 7.1.2)