Re: Stop the search once replication origin is found
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Antonin Houska <ah@cybertec.at>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2023-11-22T08:48:58Z
Lists: 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.
Commits
-
Stop the search once the slot for replication origin is found.
- ff68cc6f3bf0 17.0 landed