pg_ctl restart just appends to command line instead of regenerating original cmd

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема pg_ctl restart just appends to command line instead of regenerating original cmd
Дата
Msg-id 200106191938.f5JJcL200421@hub.org
обсуждение исходный текст
Ответы Re: pg_ctl restart just appends to command line instead of regenerating original cmd  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: pg_ctl restart just appends to command line instead of regenerating original cmd  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Patricia Holben (pholben@greatbridge.com) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
pg_ctl restart just appends to command line instead of regenerating original cmd

Long Description
I see in the mailing lists that there was activity around the pg_ctl restart function in April. I wondered if there had
beenor was going to be some action taken, and if so, if those involved were aware that subsequent restarts keep adding
tothe command line (rather than re-executing it exactly). For example, if the command at start is: 
/usr/bin/postmaster '-D' '/var/lib/pgsql/data'

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'

And so it continues with each subsequent restart.

Sample Code


No file was uploaded with this report

В списке pgsql-bugs по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Memory leak in 7.0.3 JDBC driver
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl restart just appends to command line instead of regenerating original cmd