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 1weEQO-004epD-0L for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2026 16:01:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1weEQL-0047k4-2p for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2026 16:01:29 +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 1weEQL-0047jv-1t for pgsql-hackers@lists.postgresql.org; Mon, 29 Jun 2026 16:01:29 +0000 Received: from mail-yx1-xb12e.google.com ([2607:f8b0:4864:20::b12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1weEQJ-00000000mPK-3uTf for pgsql-hackers@lists.postgresql.org; Mon, 29 Jun 2026 16:01:28 +0000 Received: by mail-yx1-xb12e.google.com with SMTP id 956f58d0204a3-664dd23829eso1016167d50.3 for ; Mon, 29 Jun 2026 09:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782748887; cv=none; d=google.com; s=arc-20260327; b=AcrEhSE5agscJJiGa0eVYb4gAr55eBIPJxc/f0/ujogJlSxrs7s71/GgvFq0HHz09r FinBpD2hZGiUaVTcrmXqJZnDc3D+IyQZlcTBsh52M2DhzKNk88cVAvXY52FNQIS/7u6y M/8dpjefId2qJoYR/dxwoFrwHmxRrHbekhJcSzOSXGIco9LbJ/qyZuTbJ+S8YTH+QM0a BnLbcRpvP6c5qDcNVnGs4b3Vx/sgWc0oBejP72ihf8Nq0b0MDFrjwB2TnfgDJ/7monX4 bUWaM36kED55ao36WEpZjgVjRNhN8RUknbGI6fl3qZfsGzAW4vFRKmnW4btPSD0X4ZNZ 4pcw== 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=MKaWShwivwULrf2SgrmjFVH8d81wMXyNN55t/L/si14=; fh=TfxJ6G0ajK+23MACZCHIHWZ+cETd//fKaHRH93XgEwM=; b=GhzUGfLBMs/V+HOdc8OB/c7tPKR7/htnAlKrgP+Lv/jXpaPGmkc6WrAlBjyVYk/nrL cp7ITRAcYm1ejdUrKDUAQhVCuwAbdmgXeA3gR3/7jBM7BDS4K3BxLXwM0IOi1BxVLGPS yelMyGC7Df18q5Pnvmao0YlFwlWgoBMjSu+zo3UOwN3BI5JUVz4MwlcEMwkOA6iqtypL J348MDF8UTxpACgPD63D+l+bB04hlf9jfSLD1jwfZ1yfGyMixT9I8GLFZ62YDoROHMrv wrI0UTzySxXV/wOVwHQCB5txd8aKXlz4FmIeKKTtzUVpFCqrVRFAX8Sa8Dehngehh+kW g5TA==; 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=1782748887; x=1783353687; 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=MKaWShwivwULrf2SgrmjFVH8d81wMXyNN55t/L/si14=; b=lLJq1anTFWnd5IoU4jKTMBRis626PJjDmj3tMjWiAbEV/yqfp+xLVPFRO03J6Im7ag 6D3pbAW6Wr9ERSMbcwGTXFg879/lsZfGmewsvdG9PYfvCrBY+bXkFRNUI/n8Z8D702GR Wnd75psUK0ouTi9NtYc44z15gnlWuwyA1jVX7xg6+XNfxZCy2u7DQU0JdJsNhgnhGDA3 46TbETcowW/8b+058PbzOuZNkCR0tgLUg4/moBNbOg7KHlvQVHwEvEhCr1iisTtbGiTL ruEP3hc/oCYEMxwjbaew3GWOyzB56grs4/L4h5L1egqcg51Me1VBDHSBTeddkp7NGfNE ej6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782748887; x=1783353687; 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=MKaWShwivwULrf2SgrmjFVH8d81wMXyNN55t/L/si14=; b=kzgl0xGHm0Ic5yPohlUjVSxAhusTCMnXcqH+b6lxVoYynshwfoIcwIu9RnFXjONLdp 6mbgiywPZdPnv59p0MQwTIB24JiNVSKoOHtyYde5yZVjdnFKmSp7MmtPIwxprZLDLnKd urX1Bby3UZPn5M/GF1cuqpb6nsINYWr5vGHiHwFXQZM4wkyUQijcDbiaO1ErHa7nLIje yKGevUCjVo32Zvusvz5wrmMz7H8TAvd87cBI0OfpsQDkFvzGM05jHbdCi+PrJcFwrxj+ HMCCP5E/t3TSpx55cGTmWsdOwFInhlMnVbzrexUK30UblaTGJLkEhVLBV7xLsUTnUgCZ Vp8w== X-Forwarded-Encrypted: i=1; AHgh+Rq/tGO4imZXyj9jgtARG5Pwc2OupN2vxFN7ZdOBChvWk2RH5bxIiroRfr1/2s7ubKrJ4nRczDXWFChbxok/@lists.postgresql.org X-Gm-Message-State: AOJu0YzY5zE6pJOCqUuwZAyBYLq5e3OWns+Kfgrz+Vzb7z++4bgl7jFQ oMw9v/Sx9VP2N02RV1zZ9NXDWUljW+cTUl0+QF5A9GGV3smwY2KTDAxSgqmqtnHTTdT2MjhUP9e dkWXtx+9dBbcUuALGEhwsUo7CdXgXFrfSqPW7 X-Gm-Gg: AfdE7cnXl/h/JzSZ9dQYXivHbBmaG7mA5qGMfrzuRTPVpgGI3KjCcTH4Kw0aJWCYJZ+ +0MKEUKrYTDpRu6qaYRJqd+p0pkrB+EdGzmKarphn7KBY1PhE3p8iVN42Ex3eR/bGEp6gN9FYJO 8DBm5puOsEZSXI7gPjUhWlsDs85o6gSbQmdh6eUgJ37OpMgM/VaQDtn3RwTeFMLceGA8EaoD9IP 0a7XHwDq6A74IUo4zr7lOBvOuCgqN2J/Wk5VEpWDQCODhmki2SRY3Vf0pUKmdbyos+gTv7JVH6W oFBY2LgsMWFuHX17cRfVun0iBLIkkw== X-Received: by 2002:a05:690e:151b:b0:663:1161:cf4f with SMTP id 956f58d0204a3-664f97f90e9mr251555d50.29.1782748886735; Mon, 29 Jun 2026 09:01:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: vignesh C Date: Mon, 29 Jun 2026 21:31:14 +0530 X-Gm-Features: AVVi8CdwgfcoGMwWMX9Q33nFidHL7NoiTiTWEnNIxcggpmbYxea4DOdTRUrw6yE Message-ID: Subject: Re: Fix publisher-side sequence permission reporting To: Fujii Masao Cc: Amit Kapila , Tristan Partin , 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, 26 Jun 2026 at 12:34, Fujii Masao wrote: > > On Wed, Jun 24, 2026 at 7:49=E2=80=AFPM vignesh C w= rote: > > Thanks for the patch. I verified that it fixes the issue with reading > > unlogged sequences on a promoted standby. > > Thanks for testing! > > > > Do you think it would be worthwhile to add a test for this scenario, > > or do you feel the additional test is not necessary in this case? > > I think it's worth adding a test for this scenario, so I've added one to > the patch. The test uses nextval() to read the unlogged sequence > instead of pg_get_sequence_data(), since this patch needs to be > backpatched to v15, while pg_get_sequence_data() was introduced in > v19. Thanks for the updated patches. I verified that the issue occurs with nextval() on all supported branches up to v15, where unlogged sequences are available. The corresponding back patches apply cleanly to their respective branches and fix the issue. I also checked other unlogged objects but couldn't reproduce a similar issue with them. Overall, the patches look good to me. Regards, Vignesh