Re: Replication protocol pipelining edge case

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Replication protocol pipelining edge case
Дата
Msg-id 2c686eeeff7049e7500303248502aaebd876c649.camel@j-davis.com
обсуждение исходный текст
Ответ на Replication protocol pipelining edge case  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
On Tue, 2021-01-05 at 09:17 -0800, Jeff Davis wrote:
> The reason I ask is because it makes clients that do pipelining more
> complex. If the server always enters copy mode, then the client can
> send a CopyDone and then pipeline more requests behind it. But if the
> server may or may not enter copy mode, then the client needs to wait
> until it sees a CopyBothResponse before any new requests can be
> pipelined.

In an offline conversation with Andres, he pointed out that we can
never be sure that we'll enter COPY mode, because the START_REPLICATION
command could throw an error. Therefore we need to always wait for the
CopyBothResponse, and can't pipeline any new commands until we get it.

Regards,
    Jeff Davis





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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: Single transaction in the tablesync worker?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [PATCH] Runtime control of CLOBBER_CACHE_ALWAYS