Re: logical apply worker's lock waits in subscriber can stall checkpointer in publisher

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: logical apply worker's lock waits in subscriber can stall checkpointer in publisher
Дата
Msg-id CAHGQGwE3uQveGEJN+1S9r_OzXhRdMpXD7y=-D516YtxWQeNp4A@mail.gmail.com
обсуждение исходный текст
Ответ на RE: logical apply worker's lock waits in subscriber can stall checkpointer in publisher  ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>)
Ответы RE: logical apply worker's lock waits in subscriber can stall checkpointer in publisher
Список pgsql-hackers
On Mon, Feb 2, 2026 at 1:50 PM Hayato Kuroda (Fujitsu)
<kuroda.hayato@fujitsu.com> wrote:
>
> Dear Fujii-san,
>
> > Yeah, but I'd like to try the first option. Attached is a very WIP patch that
> > attempts to implement it.
> >
> > With this patch, when a walsender exits with >= FATAL,
> > send_message_to_frontend() attempts to send the error message to the standby
> > in non-blocking mode. If that fails, the walsender gives up on sending
> > the message and exits immediately.
>
> I'm still unclear it is OK to modify the fundamental code, but confirmed your
> patch can solve the issue.
>
> One concern for me is that the WALs might be more likely to be missed for
> streaming replication case. What if the case walreceiver is bit busy thus send
> buffer becomes full for a while?
> Are there no issues because switchover after the walsender exits with FATAL is
> not recommended?

I don't think this is problematic, since PostgreSQL has never guaranteed that
WAL data already in the send buffer will actually be delivered to the client
at walsender FATAL exit case. But do you see this differently?

Regards,

--
Fujii Masao



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