Re: [PATCH] Add max_logical_replication_slots GUC

Bernd Helmle <mailings@oopsware.de>

From: Bernd Helmle <mailings@oopsware.de>
To: Euler Taveira <euler@eulerto.com>, Álvaro Herrera <alvherre@kurilemu.de>, Ahmed Et-tanany <ahmed.ettanany@aiven.io>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2026-01-29T10:05:53Z
Lists: pgsql-hackers
Am Mittwoch, dem 28.01.2026 um 10:43 -0300 schrieb Euler Taveira:
> Another idea is to not differentiate between physical and
> logical but have a reserved_replication_slots parameter. The concept
> is similar
> to reserved_connections. It defines the number of (physical or
> logical)
> replication slots that are reserved by roles with privileges of the
> pg_use_reserved_replication_slots. (Maybe this role name is long but
> descriptive.) It defaults to 0.

I like your second idea. That makes it independent from what you like
to reserve for, either logical or physical and supports flexible pool
configurations.


-- 
Thanks,
	Bernd