Re: [HACKERS] Another reason why the recovery tests take a long time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Another reason why the recovery tests take a long time
Дата
Msg-id 17510.1498498972@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Another reason why the recovery tests take a long time  (Andres Freund <andres@anarazel.de>)
Ответы Re: [HACKERS] Another reason why the recovery tests take a long time  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2017-06-26 12:32:00 -0400, Tom Lane wrote:
>> ... But I wonder whether it's intentional that the old
>> walreceiver dies in the first place.  That FATAL exit looks suspiciously
>> like it wasn't originally-designed-in behavior.

> It's quite intentional afaik - I've complained about the bad error
> message recently (we really shouldn't say "no COPY in progress), but
> exiting seems quite reasonable.  Otherwise we'd have add a separate
> retry logic into the walsender, that reconnects without a new walsender
> being started.

Ah, I see.  I'd misinterpreted the purpose of the infinite loop in
WalReceiverMain() --- now I see that's for receiving requests from the
startup proc for different parts of the WAL stream, not for reconnecting
to the master.
        regards, tom lane



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

Предыдущее
От: Jeevan Ladhe
Дата:
Сообщение: Re: [HACKERS] fix empty array expression in get_qual_for_list()
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Another reason why the recovery tests take a long time