agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reserve replication slots specifically for REPACK
Date: Tue, 07 Apr 2026 14:58:53 +0000
Message-ID: <E1wA7tE-003Pdn-0u@gemulon.postgresql.org> (raw)
Reserve replication slots specifically for REPACK
Add a new GUC max_repack_replication_slots, which lets the user reserve
some additional replication slots for concurrent repack (and only
concurrent repack). With this, the user doesn't have to worry about
changing the max_replication_slots in order to cater for use of
concurrent repack.
(We still use the same pool of bgworkers though, but that's less
commonly a problem than slots.)
Author: Álvaro Herrera <alvherre@kurilemu.de>
Reviewed-by: Srinath Reddy Sadipiralla <srinath2133@gmail.com>
Discussion: https://postgr.es/m/202604012148.nnnmyxxrr6nh@alvherre.pgsql
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e76d8c749c3152657711ed733f0aea61c0e36a91
Modified Files
--------------
doc/src/sgml/config.sgml | 15 +++++
doc/src/sgml/ref/repack.sgml | 6 +-
src/backend/commands/repack_worker.c | 7 +-
src/backend/replication/logical/launcher.c | 2 +-
src/backend/replication/logical/logical.c | 8 ++-
src/backend/replication/logical/logicalfuncs.c | 2 +-
src/backend/replication/logical/slotsync.c | 5 +-
src/backend/replication/slot.c | 92 +++++++++++++++++---------
src/backend/replication/slotfuncs.c | 19 +++---
src/backend/replication/walsender.c | 9 +--
src/backend/utils/misc/guc_parameters.dat | 8 +++
src/backend/utils/misc/postgresql.conf.sample | 2 +
src/include/replication/logical.h | 3 +-
src/include/replication/slot.h | 5 +-
14 files changed, 121 insertions(+), 62 deletions(-)
Message-ID: <E1wA7tE-003Pdn-0u@gemulon.postgresql.org>
Permalink: ../E1wA7tE-003Pdn-0u@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wA7tE-003Pdn-0u@gemulon.postgresql.org
reply
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: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Reserve replication slots specifically for REPACK
In-Reply-To: <E1wA7tE-003Pdn-0u@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox