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 1vvXgo-00759D-0b for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 09:29:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvXgl-00BVry-2f for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 09:29:43 +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 1vvXgl-00BVrm-1M for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 09:29:43 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvXgi-00000001Gr5-25ZX for pgsql-hackers@postgresql.org; Thu, 26 Feb 2026 09:29:42 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-6786b13984fso548396eaf.2 for ; Thu, 26 Feb 2026 01:29:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772098181; cv=none; d=google.com; s=arc-20240605; b=iqrvXZ7gtt8vzWJRqsjQbHRSH50MeD8ihwMzqb3O/ffCJktMabkhrCNppP+J4l/3zP BsSc4gWZcDHvqKS12u1zV7JICJJ/GHKwz3F1sy95xk9ZE0vyxDQ1EcsLDGF3FwVJmup3 k0Cz3tdCYX9IU8I/Q14PurweZHIMsSGnXPcrvVcj9x+8Aam86Vfmx+cLwW/QML4Hg1+d hOY40MpTx9vRyEHkHUfUEGRsJ/gZEZbbsEx/G7fMS9os5UWvizxPRMf3uxXLLOG5I2DO fddFajPreMRuRfcNS5dsbhM25omP59NFVNPJHiY0Y0YRTj0pkWThcKI0ArGYDpzsQMM4 oV1A== 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=fbHqL/l3J+mkoWrYlfUrLkKyKNq/TLo6ZZEjKI0PRNE=; fh=wCSkQz5+wwmpXZnitoIuSB9NJtzS4S4SO7tbevNHACw=; b=Jux7liTA/Ad/HfIZ2/ph15MdL0bhQRtlO2/82pbyxlHYiCc+xqajHsGjz7MsQm5AEj Vfj8RBPOPEL2kyJSOz5PKQ7hk+r7vbNrRjitumSJhAJL3yLMn0tGUPO4cT80RBRDH3ly DwEBFtX1T0m/oIT80c40XQFNjyWG5WfRK8a2xq+7S5FYEx9qdWPBcFQvGloG55AfdX1a 3nbw32XlGI/MmKy5bu31UkDdVYwgehPZu/+MYhxMr1N7Ef0s9L15880yF6O46DQ5CEIP EldyilCAsLxzxw7FU88xLmvzmftKv/A6uMaXWQyGAu79U6KaM1SQ2mBQRVK6ZL/s8q6I +kTg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772098181; x=1772702981; darn=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=fbHqL/l3J+mkoWrYlfUrLkKyKNq/TLo6ZZEjKI0PRNE=; b=mBITaNsNpCxICPZ3JSCku3Xfvr2ueY6XbJrzD75BfGnVTZpez/6pWhqaLPlvrJ11s6 9OTjJfT/mM4o4OCe5ysXpYrXKZQe/yAl02Oo7JfiNy6ob7LrEEJwTUJGReI4AP+bt2BH E4uXzLSheSTBhbZGz2e3Vb3/ziZGNnAt9lBm5xU19iRgXxp4n7GwkcC5kLBXWcmjP5K5 3U4VGUNcGnejvn7OsevDgtp+YTDmXP6SzG4o5V7L3QPlHpL2rwukMH5DclmrVGzJykRf nnbv54FIiggycnDmBaopALR2J2Cr+2ZoZqI7wlLTwbi+1iGLN+PP3DyU2b3378Kh1FL2 Filw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772098181; x=1772702981; 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=fbHqL/l3J+mkoWrYlfUrLkKyKNq/TLo6ZZEjKI0PRNE=; b=Io5OopfK9JRIu2zZHXHLbPbIls5hsxpzq04r6Z32CFSy7vYTW5rdm9mqNhXRgL/b1I 9eyh3aNxehSUqW7q+uKZuNqYibrzvVGEoDMoJRFaFfVrUgdBBea4yViHdviHCU1Ls7Ph LGsMglQA8tG1ozS/Re0B/SrHRi/sKOupaEIuJAz4mTwnABmMqqSFzX5pIllDbyvb78wP 5pQAMtOYwf2LyBpHpQiPxwC9nV27XzOlY4PIlhNF1Snsvm5fd2X7VIxweyPM0SBqlVDE 78gRc/K6j/ihKNQkAtzr4ImlC1/Me8ONDnrAcC6q34wiopuesU9hdLcPDWo26d5vD2X2 RiTA== X-Forwarded-Encrypted: i=1; AJvYcCWpK6HcJ0Qh8OSw8hD8hGVxhjozSG1ofjpgCF6Mv9fxmE3hNbSLD/sRgdB0R5DxHR/MWJGmXGGfkrxFE7xz@postgresql.org X-Gm-Message-State: AOJu0YxYP6UBDpMhFKW0nygNok5F8H2kGy+JEwDdsUhuF3wHwG8YxWF7 XdUz37XmofKs3lYKa6OrGs2o0/BuQTnwgqXjuFL8w3A1rVwBy9lDDhLbO7XYed1QOnrnpAU0vDc aSvCQTr3RbJ+yLMuxXrvtDNP3xUsTFJA= X-Gm-Gg: ATEYQzwOZ5KrUZETtSdpx7+3nXdX9eb9DZ7iF/hRVYZu8xoyPCTPRY++TK0xfDCuT9k CDlKogHR4twkez4ua3p4Hehs7vfYc17YdcHEJnVTyQ4SwtDZbRjsx/PuXTDfRHRo7MK/onEXs7Y 8D2B1tQFsWfqBGDnMAbP3kcKoS+yyTZBM+woaAQ5/gU0IUqhiRf+98eSbxJx8pMAmp2WeB5UyMo zKbIOGqM1hlFA+Ys8RcIiLlTJBx1ZX5R+GtC+Kolbmod9B/ryOybK7049xIM3ZdsAevCK+PEEot vN8= X-Received: by 2002:a05:6820:81ca:b0:668:d715:1099 with SMTP id 006d021491bc7-679c46eaa89mr8912682eaf.62.1772098180896; Thu, 26 Feb 2026 01:29:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Kukushkin Date: Thu, 26 Feb 2026 10:29:29 +0100 X-Gm-Features: AaiRm507yCdxwJzMxXwFyXYyFqVyq2vvPh_17qjWUlHozS1zViSpM5dKcg1x4SQ Message-ID: Subject: Re: synchronized_standby_slots behavior inconsistent with quorum-based synchronous replication To: shveta malik Cc: SATYANARAYANA NARLAPURAM , Ashutosh Sharma , Amit Kapila , PostgreSQL-development , PostgreSQL Hackers Content-Type: multipart/alternative; boundary="000000000000945afb064bb6c29d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000945afb064bb6c29d Content-Type: text/plain; charset="UTF-8" Hi, On Thu, 26 Feb 2026 at 09:45, shveta malik wrote: > > As suggested in [1], IMO, it is a reasonably good idea for > 'synchronized_standby_slots' to DEFAULT to the value of > 'synchronous_standby_names'. That way, even if the user missed to > configure 'synchronized_standby_slots' explicitly, we would still have > reasonable protection in place. Hmm. synchronous_standby_names contains application_names, while synchronized_standby_slots contains names of physical replication slots. These are two different things, and in fact sync replication doesn't even require to use replication slots. What is worse, even when all standbys use physical replication slots there is no guarantee that values in synchronous_standby_names will match physical slot names. Regards, -- Alexander Kukushkin --000000000000945afb064bb6c29d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Thu, 26 Feb 2026 at 09:45= , shveta malik <shveta.malik@g= mail.com> wrote:

As suggested in [1], IMO, it is a reasonably good idea for
'synchronized_standby_slots' to DEFAULT to the value of
'synchronous_standby_names'. That way, even if the user missed to configure 'synchronized_standby_slots' explicitly, we would still h= ave
reasonable protection in place.

Hmm.
synchronous_standby_names contains application_names, while=C2=A0synchronized_standby_slots contains= =20 names of physical replication slots.
These are two different things, and in fact sync replicatio= n doesn't even require to use replication slots.
What is worse, even when all standbys use p= hysical replication slots there is no guarantee that values in=C2=A0synchro= nous_standby_names will match physical slot names.

Regards,
--
Alexander Kukushkin
--000000000000945afb064bb6c29d--