Re: Stop the search once replication origin is found

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Antonin Houska <ah(at)cybertec(dot)at>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Stop the search once replication origin is found
Date: 2023-11-20 11:06:05
Message-ID: CAA4eK1Lbvh2dPvjG9haoVGeh4Z+WHJ_vOC12bkoaTDR0MVVeyg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 20, 2023 at 2:36 PM Antonin Houska <ah(at)cybertec(dot)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.

In response to

Responses

Browse pgsql-hackers by date

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