Re: "pg_ctl promote" exit status

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: "pg_ctl promote" exit status
Дата
Msg-id 51064261.3000806@vmware.com
обсуждение исходный текст
Ответ на Re: "pg_ctl promote" exit status  ("Aaron W. Swenson" <titanofold@gentoo.org>)
Ответы Re: "pg_ctl promote" exit status  (Kevin Grittner <kgrittn@ymail.com>)
Список pgsql-hackers
On 26.01.2013 23:44, Aaron W. Swenson wrote:
> On Fri, Jan 25, 2013 at 01:54:06PM -0500, Peter Eisentraut wrote:
>> On 1/12/13 3:30 PM, Aaron W. Swenson wrote:
>>> The Linux Standard Base Core Specification 3.1 says this should return
>>> '3'. [1]
>>>
>>> [1] http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
>>
>> The LSB spec doesn't say anything about a "promote" action.
>>
>> And for the stop and reload actions that you tried to change, 3 is
>> "unimplemented".
>>
>> There is an ongoing discussion about the exit status of the stop action
>> under<https://commitfest.postgresql.org/action/patch_view?id=1045>, so
>> let's keep this item about the "promote" action.
>
> You are right. Had I read a little further down, it seems that the
> exit status should actually be 7.

Not sure if that LSB section is relevant anyway. It specifies the exit 
codes for init scripts, but pg_ctl is not an init script.

- Heikki



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: unlogged tables vs. GIST
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Review of "pg_basebackup and pg_receivexlog to use non-blocking socket communication", was: Re: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown