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 1wgaKJ-006H75-1l for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jul 2026 03:48:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wgaKH-00Elet-0P for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jul 2026 03:48:57 +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 1wgaKG-00Elek-2h for pgsql-hackers@lists.postgresql.org; Mon, 06 Jul 2026 03:48:56 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wgaKF-00000001kIL-0kzZ for pgsql-hackers@lists.postgresql.org; Mon, 06 Jul 2026 03:48:55 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-c981c2c37cbso1624550a12.0 for ; Sun, 05 Jul 2026 20:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783309734; cv=none; d=google.com; s=arc-20260327; b=ZY1lKFfSo+qlPQo17wjjSrCWqFTE5F5h/FzpWoq3H84Dqvdzj8z1LJyRPPlLMLrIfk GZ1rgWw4nqz/akOmd1DdFajIyhN4GWyaqnJo0ROc7oiO9TZissFCLoirNE7axy+z0zah 8PR/kU6jLWFBsJ/ti4g/W+LsxM2to5/z9IkF9QefKWx9jc8G8Za5cV1OA5rqerqjjfHR 4Zb6inwbNUQmFWQcQUF7KNcKkUJoedzxKjW9zOtUds4nJHo2cs2Oi1i6YWosntJIo4VJ rSiXVzyCDaN9iVGpwVhd7LstA36hZ2jh/xER7I6ithFSOMsnOa4cX8Zw1GtXhXGBQhhQ di7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cSShZgtOMRgEtU6V2jp3PP1nnkhFpOHOQ5ob8NatTos=; fh=KcfTCw2ZVqAV+lTGR3KRT9q1CRnyXcs7hTtvM0Hb+1I=; b=Pcp7ggAaXeu/zHURJ1pKCJx7WYX2nDc/iEbv5YTH0ET49e98eomBbx0mnSv95Uk8kF hGFS3eLzn7G6OtH/tRBO96D4ZKxuHiJR36du+dmpvVlfFm8zViOQS+4bKxzhpnzvLl00 +iMG5l0frsFGzSZoOQv//y25/lQXh31ns82izKczVgOh0H9pn0pbeWbSh+YSQJ9l+uBf 80gJglVcT5lIIEK9FYd2jOpE6nPFaG5emIqkMkZ9ahVzcnepxwxhxPvnJLWxT/yjEnyF 6cUXw+Rtr5On9NnAbDoihX8uCyylCG9pdD6ho+XK/TA2XWurpP0Xc2ATw0K4EkmbGvx+ IHWQ==; 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=gmail.com; s=20251104; t=1783309734; x=1783914534; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cSShZgtOMRgEtU6V2jp3PP1nnkhFpOHOQ5ob8NatTos=; b=Cw+q3IQJNgLi4aYYzr5gTB18GdM9jaZmQdl4vyELyaUduxKZGnuhpMhsekT+x8knQG FVnkzGIy4MixZIeSrms4t6a+6Btziyix/XxFfdBTSNqqMT/UovJnwFY24GOJlXwYUE3Y zV9n0K7OAHLtlZjYbWWXV/CK3jQVjMM+eiKZmxDvkRRWTC4fjoOlGQihUO+e4C0ntJMm YYARvvu+BxepuemImyBl3JGnGOSPKqUMV+TknGTjW3eOFD5nRdYxcbkNiwVgdN6rCMfA qoZw4QP8hUVcVeYl+88pceCI3CW14gJSSdrLFRtrZR07Cy71edgAe/f4bTEQkWkoAH2i NnGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783309734; x=1783914534; h=content-transfer-encoding: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=cSShZgtOMRgEtU6V2jp3PP1nnkhFpOHOQ5ob8NatTos=; b=TQ8VEVG1hQ1PHLCpKJAoeWHGNZb0yPb3ceqmnALyr3GMoxX5bDpHuDif96/1HuEI94 dNqu6h5usvE0WfVMd4WChqL7HyD7/CgqG1ShKlEdcpp6n2OgbfASu1OLa9OBWWe1hQjf 0sOv5DVQ1YzHffm5J2qJJDkWH/5G3FI2U92+e2Ia+muAZMuDy1DcFmmAr1PfHKCCmV0p CYFa2A/l2tLsXq21rVZWHgWWx/QIOPl8Pbvg5hQ23cElXBLdzcgF0xAOQoEo3I8DLUm5 NoQPKM62/Zu3urWbq6y3EojsBmCT3IISZDLKW7mpgs9RIRCzvzS0RtTRmvnbEjk+SZ5O 9MwA== X-Gm-Message-State: AOJu0YxL6KwJGN5cnA1Nf6UG7ROpVnTpgRt2KSVyszS9rwGQRPEUmOpz OqoZxkah1ixdzQyDCDfx1/IBtxQxRmVjFHRHuY3wYZ8UPAzFQNZDCdWf40w+0mjEkN9dHqL9uo3 P330F9D1Luww7orpRZRYGxrmsLtCATAI= X-Gm-Gg: AfdE7cmDiRxthmCl+Ci4X4WpkbEoJd+CFJtS6Oj0XVuts/R4O6Pt2B7OVvGKzWvEENW 8QuTPqLHmUyUW94DdyRH58PmC7xauuQdvw0s9t3caaDpfJyemmNxe/7b0b7scgrswBi2Xo2biJ6 jcCCxOz0Uwh6GcLGxQ4sm0veS0JBxCzsOzSjtkU5lbQlnhhlPIpg91QWXWtZHHj1jltNvBRaSes t1SIX86k4voNvwtdGHUacWx+Ti8uXtOMTdOmnLJOIyB/vKLtpJgym5YFyjBazdy6yPPL5TcMxQU 4FWa+j0z2U4Rp/WZnLYOQ4pqkECcaoAROe9g+xUieTrg+lJa3RpKAOaugDw219XmdsBnIs/tnGg 9sqVNLCtxqWLqrftvcQyn2frvBQAE4g== X-Received: by 2002:a05:6a20:d81a:b0:3b4:870e:6f44 with SMTP id adf61e73a8af0-3c03e42981cmr8879564637.35.1783309733707; Sun, 05 Jul 2026 20:48:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Mon, 6 Jul 2026 09:18:42 +0530 X-Gm-Features: AVVi8CdHTgVAdxQmlW7RLAMDznQnn8KkdVq7WA_68AmgQN7KiidP1YqJGvroMdQ Message-ID: Subject: Re: DOCS - Clarify that REFRESH SEQUENCES might be using stale publication data To: Peter Smith Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jul 3, 2026 at 8:48=E2=80=AFAM Peter Smith = wrote: > > On Thu, Jul 2, 2026 at 6:48=E2=80=AFPM Amit Kapila wrote: > > > > On Thu, Jul 2, 2026 at 8:29=E2=80=AFAM Peter Smith wrote: > > > > > > The docs do refer to "currently subscribed sequences" but do not > > > explicitly warn about this gotcha. > > > > > > PSA: a patch to add a clarifying sentence. > > > > > > > It does not add or remove > > sequences from the subscription to match the publication. > > > > + > > + If the publication's sequence membership has changed, > > + > > + ALTER SUBSCRIPTION ... REFRESH PUBLICATION > > + should be run before REFRESH SEQUENCES to ens= ure the > > + subscription's known sequence list is current. > > + > > > > It is already mentioned that this command "does not add or remove > > sequences from the subscription to match the publication.". Adding > > more information, especially a separate para for the same, appears > > like bloating the text in docs. OTOH, I see your point of running > > REFRESH PUBLICATION before REFRESH SEQUENCES which I tried to cover in > > the existing paragraph. Apart from that, I have merged your > > doc-changes from another thread [1] which is on the same topic. Let's > > commit them together. > > > > +1 to combine both patches. > > Upon re-reading, I think there is still ambiguity due to that word > "synchronizing". > I don't read it that way. I feel the current wording is succinct and conveys what the command is supposed to do. I read your new version of the patch but I still like the one I shared previously, so I'll go-ahead with that unless someone else has preference for one or the other version. --=20 With Regards, Amit Kapila.