Re: unable to fail over to warm standby server

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unable to fail over to warm standby server
Дата
Msg-id 15716.1264810732@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: unable to fail over to warm standby server  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: unable to fail over to warm standby server  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-bugs
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jan 29, 2010 at 3:32 PM, Heikki Linnakangas
>> That only affects the error message and is harmless otherwise, but I
>> thought I'd mention it. I'll fix it, unless someone wants to argue that
>> its more useful to print the raw return value of system(), because it
>> might contain more information like which signal killed the process,
>> that you could extract from the cryptic error code using e.g WTERMSIG()
>> macro.

> An "if" statement would seem to be in order, so that you can print out
> either the exit code or the signal number as appropriate.

Yes.  Please see the existing code in the postmaster that prints
subprocess exit codes, and duplicate it (or perhaps refactor so you can
avoid code duplication; though translatability of messages might limit
what you can do there).

            regards, tom lane

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: unable to fail over to warm standby server
Следующее
От: "D Black"
Дата:
Сообщение: BUG #5303: Upgrade failure due to sever.key permissions