Re: Logical WAL sender unresponsive during decoding commit
От | Masahiko Sawada |
---|---|
Тема | Re: Logical WAL sender unresponsive during decoding commit |
Дата | |
Msg-id | CAD21AoB3OMcRFTMxottZYvGfc223ZqXgB-eMvD3Yosgaa2=R+Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Logical WAL sender unresponsive during decoding commit (Amit Kapila <amit.kapila16@gmail.com>) |
Ответы |
Re: Logical WAL sender unresponsive during decoding commit
Re: Logical WAL sender unresponsive during decoding commit |
Список | pgsql-hackers |
On Tue, Aug 16, 2022 at 2:08 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > On Tue, Aug 16, 2022 at 9:28 AM Andrey Borodin <x4mmm@yandex-team.ru> wrote: > > > > Hi hackers! > > > > Some time ago I've seen a hanging logical replication that was trying to send transaction commit after doing table pg_repack. > > I understand that those things do not mix well. Yet walsender was ignoring pg_terminate_backend() and I think this worthfixing. > > Can we add CHECK_FOR_INTERRUPTS(); somewhere in this backtrace? > > > > I think if we want to do this in this code path then it may be it is > better to add it in ReorderBufferProcessTXN where we are looping to > process each change. +1 The same issue is recently reported[1] on -bugs and I proposed the patch that adds CHECK_FOR_INTERRUPTS() to the loop in ReorderBufferProcessTXN(). I think it should be backpatched. Regards, [1] https://www.postgresql.org/message-id/CAD21AoD%2BaNfLje%2B9JOqWbTiq1GL4BOp9_f7FxLADm8rS8cDhCQ%40mail.gmail.com -- Masahiko Sawada EDB: https://www.enterprisedb.com/
В списке pgsql-hackers по дате отправления: