]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Reserve replication slots specifically for REPACK
authorÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 7 Apr 2026 14:55:29 +0000 (16:55 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 7 Apr 2026 14:55:29 +0000 (16:55 +0200)
commite76d8c749c3152657711ed733f0aea61c0e36a91
tree44cf89f6deb0d025b0e780ebcc62dd4885350be3
parent979387f1885111c72b84af535f23de4e3e913206
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
14 files changed:
doc/src/sgml/config.sgml
doc/src/sgml/ref/repack.sgml
src/backend/commands/repack_worker.c
src/backend/replication/logical/launcher.c
src/backend/replication/logical/logical.c
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/logical/slotsync.c
src/backend/replication/slot.c
src/backend/replication/slotfuncs.c
src/backend/replication/walsender.c
src/backend/utils/misc/guc_parameters.dat
src/backend/utils/misc/postgresql.conf.sample
src/include/replication/logical.h
src/include/replication/slot.h