From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Stop the search once the slot for replication origin is found.
Date: Wed, 22 Nov 2023 03:16:05 +0000
Message-ID: <E1r5dif-006d58-EE@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ff68cc6f3bf08546802216e0b9d28ad1d4be7e70
Modified Files
--------------
src/backend/replication/logical/origin.c | 1 +
1 file changed, 1 insertion(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Stop the search once the slot for replication origin is found.
In-Reply-To: <E1r5dif-006d58-EE@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox