Re: unable to fail over to warm standby server

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unable to fail over to warm standby server
Дата
Msg-id 24571.1265752772@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: unable to fail over to warm standby server  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Tom Lane wrote:
>> 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).

> Here's what I came up with. Translatability indeed makes it pretty hard,
> I ended up copy-pasting.

Looks reasonable to me.  One possible objection is that someone running
in "terse" logging mode would not get any information about the child
process's exit code, since errdetail would be suppressed in that case.
But we can probably live with that --- as far as I can tell, few people
use terse-mode logging.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: unable to fail over to warm standby server
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: unable to fail over to warm standby server