| From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
|---|---|
| To: | Ahmed Et-tanany <ahmed(dot)ettanany(at)aiven(dot)io>, pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Operational issues when max_replication_slots is exhausted |
| Date: | 2025-12-15 15:17:52 |
| Message-ID: | bfd667fac146fd2ff451b6c0b0750d7f979cf6b0.camel@cybertec.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Mon, 2025-12-15 at 12:58 +0100, Ahmed Et-tanany wrote:
> Our problem is that when our customers use up all available replication slots for logical replication,
> our database management tasks that also require a slot fail (for example, creating the required
> replication slot for a new physical standby). Since increasing `max_replication_slots` requires
> a restart, we would like to avoid that if possible.
>
> One idea we have considered is patching PostgreSQL to add a new GUC parameter that would allow
> a superuser to reserve a certain number of replication slots usable only for management tasks.
>
> Is this a known issue that might be addressed in PostgreSQL at some point? If not,
> what would be a good way to solve this problem?
It is conceivable that somebody might change the behavior at some point (compare
"reserved_connections"). If you write or sponsor a patch, that would increase
the likelihood.
Right now, my only suggestion is to set "max_replication_slots" high.
Yours,
Laurenz Albe
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2025-12-15 16:25:23 | Re: Operational issues when max_replication_slots is exhausted |
| Previous Message | Ahmed Et-tanany | 2025-12-15 11:58:43 | Operational issues when max_replication_slots is exhausted |