Stop the search once replication origin is found

From: Antonin Houska <ah(at)cybertec(dot)at>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Stop the search once replication origin is found
Date: 2023-11-20 09:07:53
Message-ID: 2694.1700471273@antos
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
replorigin_session_setup_break.diff text/x-diff 394 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message a.rybakina 2023-11-20 09:29:47 Re: POC, WIP: OR-clause support for indexes
Previous Message Andrey M. Borodin 2023-11-20 09:07:18 Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock