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 CAA4eK1Lbvh2dPvjG9haoVGeh4Z+WHJ_vOC12bkoaTDR0MVVeyg@mail.gmail.com
Whole thread Raw
In response to Stop the search once replication origin is found  (Antonin Houska <ah@cybertec.at>)
Responses Re: Stop the search once replication origin is found
List pgsql-hackers
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.

--
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: Картышов Иван
Date:
Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed