Re: Decoding of two-phase xacts missing from CREATE_REPLICATION_SLOT command

Поиск
Список
Период
Сортировка
От Ajin Cherian
Тема Re: Decoding of two-phase xacts missing from CREATE_REPLICATION_SLOT command
Дата
Msg-id CAFPTHDZQ0DefQP1UakkBSP5cwP1y8e4_HqzJjQ3edW-q8aSLEA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Decoding of two-phase xacts missing from CREATE_REPLICATION_SLOT command  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: Decoding of two-phase xacts missing from CREATE_REPLICATION_SLOT command  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-hackers
On Wed, Jun 9, 2021 at 9:57 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> On Wed, Jun 9, 2021 at 4:50 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
> >
> > On Wed, Jun 9, 2021 at 1:53 AM Jeff Davis <pgsql@j-davis.com> wrote:
> > >
> > > On Tue, 2021-06-08 at 17:41 +1000, Ajin Cherian wrote:
> > > > Here's an updated patchset that adds back in the option for two-phase
> > > > in CREATE_REPLICATION_SLOT command and a second patch that adds
> > > > support for
> > > > two-phase decoding in pg_recvlogical.
> > >
> > > A few things:
> > >
> > > * I suggest putting the TWO_PHASE keyword after the LOGICAL keyword
> > >
> >
> > Isn't it better to add it after LOGICAL IDENT? In docs [1], we expect
> > that way. Also, see code in libpqrcv_create_slot where we expect them
> > to be together but we can change that if you still prefer to add it
> > after LOGICAL. BTW, can't we consider it to be part of
> > create_slot_opt_list?

Changed accordingly.

> Some more points:
> 1. pg_recvlogical can only send two_phase option if
> (PQserverVersion(conn) >= 140000), otherwise, it won't work for older
> versions of the server.

Updated accordingly.

I've also modified the pg_recvlogical test case with the new option.

regards,
Ajin Cherian

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: "an SQL" vs. "a SQL"
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: Decoding speculative insert with toast leaks memory