Re: BUG #4122: ./postres 'restart' does not start server with same options as 'start' does - Mailing list pgsql-bugs

From Gary Doades
Subject Re: BUG #4122: ./postres 'restart' does not start server with same options as 'start' does
Date
Msg-id 480E36A2.1020404@gpdnet.co.uk
Whole thread Raw
In response to Re: BUG #4122: ./postres 'restart' does not start server with same options as 'start' does  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
List pgsql-bugs
Stefan Kaltenbrunner wrote:
> Eugen.Konkov@aldec.com wrote:
>> I have just installed Postgres 8.3.1.
>> And /usr/local/etc/rc.d/postgresql and
>> <tar>/contrib/start-scripts/freebsd scripts are different
>> BUG in installator?
>
> the one in /usr/local/etc/rc.d/postgresql is likely the on that freebsd
> supplies if you install from the porttree so you should ask them ...
>
>
> Stefan
>

Actually this looks like an issue with pg_ctl on freebsd.

If I invoke pg_ctl manually to do a start:

pg_ctl -D /usr/local/pgsql/data start

and then

ps aux

the root postgres process shows as:

/usr/local/bin/postgres -D /usr/local/pgsql/data

However, if I manually do a restart:

pg_ctl -D /usr/local/pgsql/data restart

the root postgres process shows as:

/usr/local/bin/postgres

i.e without the parameters.

The init script is not the problem as it invokes the same pg_ctl command
line in each case of start, stop, restart (apart from the start, stop,
restart bit of course).

Cheers,
Gary.

pgsql-bugs by date:

Previous
From: Meetesh Karia
Date:
Subject: Patch for LISTEN/NOTIFY race condition?
Next
From: Alvaro Herrera
Date:
Subject: Re: Patch for LISTEN/NOTIFY race condition?