public inbox for [email protected]
help / color / mirror / Atom feedFrom: Masahiko Sawada <[email protected]>
To: shveta malik <[email protected]>
Cc: Fujii Masao <[email protected]>
Cc: Ahmed Et-tanany <[email protected]>
Cc: Álvaro Herrera <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] Add max_logical_replication_slots GUC
Date: Mon, 23 Mar 2026 17:13:57 -0700
Message-ID: <CAD21AoCB31azOSYNSdGfSi8reUzbPaj+e3C7uMC=rvLzeqMsNA@mail.gmail.com> (raw)
In-Reply-To: <CAJpy0uC3aJzu_1zsaShL0UAy763MuJ3KOBZORb-a842NQ41tpg@mail.gmail.com>
References: <CAD7nQBD1iy3NAS2YRDUH+zk0g=50px_h_wRsLcFkai7R_RF6VQ@mail.gmail.com>
<[email protected]>
<CAD7nQBCfgCeTwO=45OXhGc=wpYBrWXJfzJKRy+T26_jALxatLg@mail.gmail.com>
<CAHGQGwEaBw9dd+Nzb2ETDJ-40nJTo6GRXrG_FcP0rmw3_-qU_Q@mail.gmail.com>
<CAJpy0uC3aJzu_1zsaShL0UAy763MuJ3KOBZORb-a842NQ41tpg@mail.gmail.com>
Hi,
On Mon, Mar 9, 2026 at 11:55 PM shveta malik <[email protected]> wrote:
>
> On Thu, Jan 29, 2026 at 5:10 PM Fujii Masao <[email protected]> wrote:
> >
> > On Wed, Jan 28, 2026 at 10:02 PM Ahmed Et-tanany
> > <[email protected]> wrote:
> > >
> > > Yes, that's what I meant.
> >
> > Would something like max_logical_wal_senders also be needed for your purpose?
> > Otherwise, logical replication connections could exhaust max_wal_senders and
> > prevent physical replication connections from being established.
> >
>
> I could be mistaken, but I haven’t found a way to start a logical
> replication stream without a replication slot. A replication
> connection and walsender can exist without a slot, for example:
> ./psql "host=localhost port=5432 user=user1 dbname=postgres
> replication=database"
>
> However, converting that connection to logical replication requires a
> slot from the max_logical_replication_slots pool. If that pool is
> exhausted, the connection cannot be converted — in which case,
> wouldn’t a single GUC suffice?
In an extreme case like where if all walsenders are used up by logical
walsender who are just connecting and not using logical replication
slots, physical replication cannot start even if there is a free
physical replication slot. But I think it's sufficient to have
something like max_logical_replication_slots in most cases. So a
single GUC seems to suffice unless I'm not missing some cases.
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
view thread (10+ messages)
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: [PATCH] Add max_logical_replication_slots GUC
In-Reply-To: <CAD21AoCB31azOSYNSdGfSi8reUzbPaj+e3C7uMC=rvLzeqMsNA@mail.gmail.com>
* 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