Re: Stop the search once replication origin is found - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Stop the search once replication origin is found
Date
Msg-id CAA4eK1LmUVPCNwoHcWzRhMca5PA1sBp+UrbdqmU8XfJuu6SMiQ@mail.gmail.com
Whole thread Raw
In response to Re: Stop the search once replication origin is found  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: Stop the search once replication origin is found
List pgsql-hackers
On Mon, Nov 20, 2023 at 4:36 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> On Mon, Nov 20, 2023 at 2:36 PM Antonin Houska <ah@cybertec.at> wrote:
> >
> > Although it's not performance-critical, I think it just makes sense to break
> > the loop in replorigin_session_setup() as soon as we've found the origin.
> >
>
> Your proposal sounds reasonable to me.
>

Pushed, thanks for the patch!

--
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [PoC] pg_upgrade: allow to upgrade publisher node
Next
From: Amit Kapila
Date:
Subject: Re: Lockless exit path for ReplicationOriginExitCleanup