Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vlRyS-00CNnS-0C for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jan 2026 13:22:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vlRyP-008vLM-2E for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jan 2026 13:22:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vlRyP-008vL8-0t for pgsql-hackers@lists.postgresql.org; Thu, 29 Jan 2026 13:22:13 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vlRyM-002vBK-33 for pgsql-hackers@lists.postgresql.org; Thu, 29 Jan 2026 13:22:12 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 841CFEC00C3; Thu, 29 Jan 2026 08:22:10 -0500 (EST) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-06.internal (MEProxy); Thu, 29 Jan 2026 08:22:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1769692930; x=1769779330; bh=mL58kmRHGTcnNMtS/RwhqqP0pqP/1iKGocUO2KwgfFM=; b= Gsp9dVzaf3BWDQCLnbIR7zI05CzsAOxFRT9o8OCqVTXocai752FUnhv0lyVOrP15 gkodFhjjQrPFAFPaxzuXth7NUJGx0zbW4bXdH0d31PkRMpjZu0k6548wC9/6Q178 kEm65NuY5oJg6Do3Xkh7dX9K58tyxBOsSu60rR4G37HcxcuayLnE7ujiGQbWjctw Zgzyq+J2g1xZS4y7jDI432kVkAOvNEpUqo7BrfRqjdyk5TomOKuKKwFGiaolyxr9 lYKruRVg8nfAoehsZ6XozLmiO38v/mpXBTsEERWX1BL2DRBDbpRh3oasyN1VQufn rQAW0bKvaAzJXbiCSRo72g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1769692930; x= 1769779330; bh=mL58kmRHGTcnNMtS/RwhqqP0pqP/1iKGocUO2KwgfFM=; b=I ubYAC9jg+IbR2ZpM2JBqPIlZEiurA6RipT1YUpgVvrcfh0tgas4oARU0+vUc1UZ4 PwT8m8wghbzbESJAJKjY9aCyCBLmeReNhlk2z5BQXpQ6j2XH0+BVfCw+/PGqoFx5 xoI7Xo8UWNr5ZD9NSCtw/VaGXGs/l/Wx6xSHT87S22HEvi8tstMT/Oz+ItYXZOh7 7t+Xywnp7UINx6d0SdDTgHk1/dqVv9oMtnAZQ6hNUFBpMsIpwCyNdsujjbRnCLZW CjSaovYAOaC2DFjdaG54sZ/Q8+7ahr03Vjs5wBKlcSo6N9oaHhbWk/dOuFckXWCK n3AxAixmxKrx+MohJ4Bxg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduieeifedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfgfhulhgv rhcuvfgrvhgvihhrrgdfuceovghulhgvrhesvghulhgvrhhtohdrtghomheqnecuggftrf grthhtvghrnhepleevgfeileegfffglefgfeefffeghfefvdeftdduvdffieeijeffudel iefhvdevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvuhhlvghrsegvuhhl vghrthhordgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopegrhhhmvggurdgvthhtrghnrghnhiesrghivhgvnhdrihhopdhrtghpthht ohepmhgrshgrohdrfhhujhhiihesghhmrghilhdrtghomhdprhgtphhtthhopegrlhhvhh gvrhhrvgeskhhurhhilhgvmhhurdguvgdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgv rhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 1A433182007A; Thu, 29 Jan 2026 08:22:09 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: A2BSh7Bsp0zV Date: Thu, 29 Jan 2026 10:21:48 -0300 From: "Euler Taveira" To: "Ahmed Et-tanany" , "Fujii Masao" Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , pgsql-hackers@lists.postgresql.org Message-Id: <09577e49-f53e-4829-916c-662bbed0922b@app.fastmail.com> In-Reply-To: References: <202601281248.qjv5oru7hxlz@alvherre.pgsql> Subject: Re: [PATCH] Add max_logical_replication_slots GUC Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jan 29, 2026, at 10:01 AM, Ahmed Et-tanany wrote: > > That's a great point! I'm thinking we could potentially avoid > introducing a separate max_logical_wal_senders GUC by reusing > max_logical_replication_slots to decide whether a WAL sender can > start for logical replication. > > This way, the limit on logical slots would also indirectly cap > the number of logical WAL senders, helping protect physical > replication connections without adding another configuration > parameter. > You have 2 resources (walsender and replication slot). You are restricting a resource based on a configuration from another resource. That seems a potential source of confusion. -- Euler Taveira EDB https://www.enterprisedb.com/