Re: Include sequence relation support in logical replication

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Include sequence relation support in logical replication
Дата
Msg-id 20200509002649.rdrfaocsuyfw3dck@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Include sequence relation support in logical replication  (Cary Huang <cary.huang@highgo.ca>)
Список pgsql-hackers
Hi,

On 2020-05-08 16:32:38 -0700, Cary Huang wrote:
> I have added more regression test cases to the sequence replication
> patch with emphasis on transactions and rollback per your
> suggestions. I find that when a transaction is aborted with rollback,
> the decoder plugin will not receive the change but the sequence value
> will in fact advance if nextval() or setval() were called.

Right. The sequence advances shouldn't be treated
transactionally. That's already (optionally) done similarly for
messages, so you should be able to copy that code.

Greetings,

Andres Freund



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: [PATCH] Fix division by zero (explain.c)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: stat() on Windows might cause error if target file is largerthan 4GB