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 1vzdAj-001B4B-1H for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 16:09:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzdAh-00HNbB-0S for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 16:09:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vzdAg-00HNb2-2b for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 16:09:31 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzdAe-00000001p6F-3Bel for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 16:09:31 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-b96e579c0fcso248292966b.3 for ; Mon, 09 Mar 2026 09:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773072564; cv=none; d=google.com; s=arc-20240605; b=i8jTNW9qJPeh7b3QMnSJrQ3+RacttuCr+upV+B8HPubrZrZq67ZH4Wewnbo3rSQgW2 Hmem8P0eZfX/PlcY0u6WLTqIm/ZIKGYHZBkofQhTEh/37gQ9bjwqH5HYqvmOVH2H+E8W jbyOOqTYvf4I1v4LOIgYSf6wc4Tw5RZ9KXD0XgKwibDMLoTgVp2a89yxktu8HU9jcJmA YQAqs/PEF2Q9GMOzDNtF001wKaI6K1zGixX+X6VeNcIXJGwErx44QNlQAd994N7N4oz/ sOtTzTJ//nBFYuKizj9hesOPMWrKRMb+RcI1Cs56Z3OO/fmO1RuRmUZLZmJzWx0FfBWu 3yUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=p4vbgoG0+nrJXfxcgNd/TwsNHUtvRSG6hQeac9FSvsE=; fh=UxilzLWXFZValt1qxkiQcEFmyyTOCY8WB/q3+nePuZI=; b=IQIxJ6d0SAv83eQGHT6oUpdbVKz6w1xktTkgBzUBybeRXOXvIaTQ9zxoznxgl300cE YVRrNm8MvkLcpS1ievhsBuCs18yqBaNH1CsCz/RcRzB2iP+RxU1gHZGO1ZXlsjuZgqUb bLH6EyLx5+iW5CWDPQB/2SrrBJApq9FRW8PMgJc4Bqc+HzLDFp5K0okP/Hzj5SZBbtR+ Eg3ZQSXQhs4rWn9VeqeUOPLOYUL0RGhTXfJa+ZxvDFZSxXKZJdpzSu2lq6M8ZhW0fsnm mC4lNRRkuNaaTQH+fkqqujbjS51Yzj/ir5KBjYjS7hBNv7PRu+S0C+j/qjoxvXCljeQG jXLw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aiven.io; s=google; t=1773072564; x=1773677364; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=p4vbgoG0+nrJXfxcgNd/TwsNHUtvRSG6hQeac9FSvsE=; b=jOFqLdhrUc6xy53mYapCnadzrUm1V50TQAtic3bUU4FG3ekPNdKuBXtwX4S04Uhl/L 78KkNHd5+/IEbBXEXb42qnw1vsVbgr+6ay0UXVAKqksTZcqoVnd2y8wfz1RbIIJwBzxX R8n2teuCGwgHyvKH459ZZrESpB/EWq/PxnuUI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773072564; x=1773677364; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=p4vbgoG0+nrJXfxcgNd/TwsNHUtvRSG6hQeac9FSvsE=; b=Gv87MHm4sp6TMXawTiXIEwfXubSs3dA2PR1EEavVKub9pGo8WLKQp2arkQ07zZmUf3 /rbh9kUqBmGiG8n3KzW6gjzi/bRqB6GcMW0+N7wtZb+Yg2GlIzAjzUhQQ2GJgu2Nv3XX 2a4s4zPAvtwErLEr6dPzbDGDYo03qPqvkiV64AWsVeqiHuHMtlcU+0qmuMXsW6Y9HViG 1XdqLU3YSKrOBmmYxArTNjbtU5frC/8NHfULsUNskbEiNGc1fEteNuts5tTXYXrBDiTS EEWlNb52+nxggUwJIdGjYD8v9Cql9QGNVwlaEkYLuBKRclDBl5jCb47wRWW/cvNXXDgT y3/Q== X-Forwarded-Encrypted: i=1; AJvYcCU2SSd+F+3hUse0mvlMEoEV3aIOud1Vw4QaEF6rp28bZlcmmMrtcajkwXSOOIn+wjvtFhbf1uXnBRRr8MJd@lists.postgresql.org X-Gm-Message-State: AOJu0YyJ01jdmufooc37QLsnB2pKYNozLQjiRjkTN9KfauanxcgTGKG9 fBmAeg8Q6YteNA+1Ve7Gy8ysDhc9cQjQiRvxQiZja+hfJK0VyQlF+ylvlFMqGIvSPWEYCMtSVWb QyewXvSw0M5T2O92an4VrGBLS1Tt9KFN/zbVOvLTInpF90RkXZPw4OGI= X-Gm-Gg: ATEYQzyvtGiJi0KuHH95bUf3NAV2f7Xigsux+grewzHRfWq2j6HlCRZUERFrkax7zA5 osx0dY9zRDY/bo8b1KDgPi7dFWYgL50g8GbcpYFSrDfuKrpIydVeYSXm1i5Gpdmm6KwOkJaY37V Fcmwn4gbTro+ShqpZXDC274hHuhyxhMj9uBXsGstgv3b2Byw5XdSYb8+RuVYTWQbOxTvlWIMwIK OkA2QO4F0/kMjAN2H/VY9saVBT/fylUhleXqw3iQ7MGTVuxl3TXI7I0v+Xu+4oSZ4vQtIBcCo6c 685NboFdbPh77mT8793HWSyORZ6iL/yLwzyvKhyt X-Received: by 2002:a17:907:720e:b0:b94:2ca0:4ad6 with SMTP id a640c23a62f3a-b942e0253cdmr702393166b.56.1773072564144; Mon, 09 Mar 2026 09:09:24 -0700 (PDT) MIME-Version: 1.0 References: <202601281248.qjv5oru7hxlz@alvherre.pgsql> In-Reply-To: From: Ahmed Et-tanany Date: Mon, 9 Mar 2026 17:09:13 +0100 X-Gm-Features: AaiRm50_ZXowOyUuhnFWBoT6g_y5nMcaiulO_ZO4CDCTyCTm-w2CzR35yfsXAWQ Message-ID: Subject: Re: [PATCH] Add max_logical_replication_slots GUC To: Fujii Masao Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000058e1d4064c99a0fb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000058e1d4064c99a0fb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 29, 2026 at 12:39=E2=80=AFPM Fujii Masao wrote: > 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. > > That said, adding two separate GUC parameters (i.e., > max_logical_replication_slots > and max_logical_wal_senders) for this purpose doesn't seem like a > great solution, > though... > For my purpose, it doesn't actually seem that I would need max_logical_wal_senders to limit WAL senders. Since each logical connection always requires a logical replication slot, the actual number of active logical connections (and logical WAL senders) would ultimately be bounded by max_logical_replication_slots. My main concern is therefore slot exhaustion rather than the WAL sender limit. --=20 Ahmed Et-tanany Aiven: https://aiven.io/ --00000000000058e1d4064c99a0fb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jan 29, 2026 at 12:39=E2=80=AFPM = Fujii Masao <masao.fujii@gmail.= com> wrote:
Would something like max_logical_wal_senders also be needed for your purpos= e?
Otherwise, logical replication connections could exhaust max_wal_senders an= d
prevent physical replication connections from being established.

That said, adding two separate GUC parameters (i.e.,
max_logical_replication_slots
and max_logical_wal_senders) for this purpose doesn't seem like a
great solution,
though...

For my purpose, it doesn'= t actually seem that I would need max_logical_wal_senders to l= imit WAL senders. Since each logical connection always requires a logical r= eplication slot, the actual number of active logical connections (and logic= al WAL senders) would ultimately be bounded by max_logical_replicatio= n_slots. My main concern is therefore slot exhaustion rather than th= e WAL sender limit.

--
Ahmed Et-tanany
Aiven: https://aiven.io/
--00000000000058e1d4064c99a0fb--