Re: pg_ctl restart just appends to command line instead of regenerating original cmd
От | Peter Eisentraut |
---|---|
Тема | Re: pg_ctl restart just appends to command line instead of regenerating original cmd |
Дата | |
Msg-id | Pine.LNX.4.30.0106201654080.725-100000@peter.localdomain обсуждение исходный текст |
Ответ на | pg_ctl restart just appends to command line instead of regenerating original cmd (pgsql-bugs@postgresql.org) |
Ответы |
Re: pg_ctl restart just appends to command line instead of regenerating
original cmd
|
Список | 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 по дате отправления: