Re: Skipping logical replication transactions on subscriber side
От | Masahiko Sawada |
---|---|
Тема | Re: Skipping logical replication transactions on subscriber side |
Дата | |
Msg-id | CAD21AoBO62Auq7G_ypv_1zCB6E7EoU3_ro6uDbHYgZgT+o7LgQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Skipping logical replication transactions on subscriber side (Amit Kapila <amit.kapila16@gmail.com>) |
Список | pgsql-hackers |
On Fri, Oct 1, 2021 at 2:50 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > On Fri, Oct 1, 2021 at 6:30 AM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > > > On Fri, Oct 1, 2021 at 5:05 AM Peter Eisentraut > > <peter.eisentraut@enterprisedb.com> wrote: > > > > > > Also, what happens when you forget to reset the xid after it has passed? > > > Will it get skipped again after wraparound? > > > > Yes. > > > > Aren't we resetting the skip_xid once we skip that transaction in > stop_skipping_changes()? If so, it shouldn't be possible to skip it > again after the wraparound. Am I missing something? Oops, I'd misunderstood the question. Yes, Amit is right. Once we skip the transaction, skip_xid is automatically reset. So users don't need to reset it manually after skipping the transaction. Sorry for the confusion. Regards, -- Masahiko Sawada EDB: https://www.enterprisedb.com/
В списке pgsql-hackers по дате отправления: