Re: "pg_ctl promote" exit status

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: "pg_ctl promote" exit status
Дата
Msg-id 51D18E0B.10500@gmx.net
обсуждение исходный текст
Ответ на Re: "pg_ctl promote" exit status  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: "pg_ctl promote" exit status  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On 6/28/13 10:50 PM, Bruce Momjian wrote:
> On Mon, Jan 28, 2013 at 09:46:32AM -0500, Peter Eisentraut wrote:
>> On 1/26/13 4:44 PM, Aaron W. Swenson wrote:
>>> You are right. Had I read a little further down, it seems that the
>>> exit status should actually be 7.
>>
>> 7 is OK for "not running", but what should we use when the server is not
>> in standby mode?  Using the idempotent argument that we are discussing
>> for the stop action, promoting a server that is not a standby should be
>> a noop and exit successfully.  Not sure if that is what we want, though.
> 
> I looked at all the LSB return codes listed here and mapped them to
> pg_ctl error situations:
> 
>     https://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
> 
> Patch attached.  I did not touch the start/stop return codes.

Approximately none of these changes seem correct to me.  For example,
why is failing to open the PID file 6, or failing to start the server 7?





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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Documentation/help for materialized and recursive views
Следующее
От: David Fetter
Дата:
Сообщение: Re: New regression test time