Re: Improving the latch handling between logical replication launcher and worker processes. - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Improving the latch handling between logical replication launcher and worker processes.
Date
Msg-id CAA4eK1JWSjh6dyjpnL+wmME8EFS=5diRkP-mTci6Mpx0eCKR-w@mail.gmail.com
Whole thread Raw
In response to Re: Improving the latch handling between logical replication launcher and worker processes.  (vignesh C <vignesh21@gmail.com>)
List pgsql-hackers
On Mon, Jul 8, 2024 at 5:47 PM vignesh C <vignesh21@gmail.com> wrote:
>
> On Fri, 5 Jul 2024 at 18:38, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> >
>
> > As an alternative, smaller fix, I think we could do the attached. It
> > forces the launcher's main loop to do another iteration, if it calls
> > logicalrep_worker_launch(). That extra iteration should pick up any
> > missed notifications.
>
> This also works.
>

The minor drawback would be that in many cases the extra iteration
would not lead to anything meaningful.

--
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: Partial aggregates pushdown
Next
From: Laurenz Albe
Date:
Subject: Re: Wrong security context for deferred triggers?