Stop the search once the slot for replication origin is found.
Amit Kapila <akapila@postgresql.org>
Stop the search once the slot for replication origin is found. In replorigin_session_setup(), we were needlessly looping for max_replication_slots even after finding an existing slot for the origin. This shouldn't hurt us much except for probably large values of max_replication_slots. Author: Antonin Houska Discussion: http://postgr.es/m/2694.1700471273@antos
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/origin.c | modified | +1 −0 |
Discussion
- Stop the search once replication origin is found 4 messages · 2023-11-20 → 2023-11-22