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 CAA4eK1JnP6hb1vc--MbUq5CZf_6KakacMq5L-MLj7oVFBJk9Rg@mail.gmail.com
Whole thread Raw
In response to Re: Improving the latch handling between logical replication launcher and worker processes.  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
On Fri, Jul 5, 2024 at 6:38 PM Heikki Linnakangas <hlinnaka@iki.fi> wrote:
>
>
> Your solution with an additional latch seems better because it makes
> WaitForReplicationWorkerAttach() react more quickly, without the 10 s
> wait. I'm surprised we have that in the first place, 10 s seems like a
> pretty long time to wait for a parallel apply worker to start. Why was
> that ever OK?
>

Isn't the call wait for 10 milliseconds?  The comment atop
WaitLatch("The "timeout" is given in milliseconds...) indicates the
timeout is in milliseconds.

--
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Re: pgsql: Add pg_get_acl() to get the ACL for a database object
Next
From: "Joel Jacobson"
Date:
Subject: Re: Incorrect results from numeric round() and trunc()