Stop the search once replication origin is found

Antonin Houska <ah@cybertec.at>

From: Antonin Houska <ah@cybertec.at>
To: pgsql-hackers@lists.postgresql.org
Date: 2023-11-20T09:07:53Z
Lists: pgsql-hackers

Attachments

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.

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com

Commits

  1. Stop the search once the slot for replication origin is found.