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 1wG3gk-005q16-2m for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Apr 2026 23:42:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wG3fj-003SrN-2Z for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Apr 2026 23:41:27 +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 1wG3fj-003SrF-1S for pgsql-hackers@lists.postgresql.org; Thu, 23 Apr 2026 23:41:27 +0000 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wG3fg-00000002jWJ-22Ml for pgsql-hackers@postgresql.org; Thu, 23 Apr 2026 23:41:26 +0000 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-40ea611d1a4so2679341fac.2 for ; Thu, 23 Apr 2026 16:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776987682; cv=none; d=google.com; s=arc-20240605; b=YRfM8XcjdiIJgBHAsUNHoADE7uwqZ9mTmkHDFmVcfXRbDvJ0D58Xde633RE+t7TCAO mIiuAwlzfKWlJJWLrPuWzoJLEckEF1ar2UU3TRHL9S4mn8fxl+yObgRD+E1b4Rv+bbDs GoOXtAcgczSPTUXevmEE00U9xf8Y/UPN0Bn7gI1EZJdIMoTzD+0kxjHmQEOGVT+v/Az/ Y6TikAedjz/il330/f4Wqv44Rcttl3htUivSUkK4qOR0lpK5WrNcBgILVC6LtVhRZmwt /O6QUqCp+wmshORtI3SH6jmfIh64mmkJp1RXD+VjaPZdWOSJBmuN9tfvNyOm4iUhp/fz X60Q== 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=StA7nYMfm5t2X9tzWJm+PHchxLT69xC2uLXYYKauqiA=; fh=J7paBiTm7dWLH2ihprS6WPNmfX4YTttW1Wbg2/TbhvI=; b=DzKJDQmn1f8h2sDbi7n0bFF/BYmAIi2nnvodw1IqCMGdedvCNi98NkSpnm4qQr3264 /Hg9IqzvaFl1w7aRGfJn6tApr0xLSi4HZv6Y9JFn9/IVQ60T0/pX5d5ZMyD//3OR6Oto IUXGGwvtbv2qmIF0keBr0Mzy/5K/tiWOnii1/8geMzikL8fyQ4q21zwgpf9ci/L11Aen At9RF+wRYZWD9Ei6miML2MTbjMhLjHJbpTebdJwtGpI/EFJaOStK7gldZ68+V8u+Kvd9 iN37rmzB3LMdVDyy0fGP/1Hqu7PLtKKrGePBZQtBFGwNGlQfdgjBrg3ZfLgIDp30s0Lz ErZQ==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1776987682; x=1777592482; 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=StA7nYMfm5t2X9tzWJm+PHchxLT69xC2uLXYYKauqiA=; b=l0toDOkpbe0HeIvojdhR+/3xpuLfT3MzXbStQz2DNqZTXiq+lzRT/1dr8P/j6TVm00 Tv6Vu+zwSaAEgSUn3N5DXoZ69FQKXlDYtDExugwYh7bN6/aherW9OZK5tBLkvkcr1y/b LldW6Axx9OxlQCh6qWhXX9f5vAI2+Dd5Kr9KHkvynefZ4npDUj981YmPu5qriw0LzLNc jJGhv4tZgG5nyKzSln0nDNy2hhgFgx/C6AZcuQi7Pr4RocJaTB3bPV2eLwpdcq8h3B2e S27CuWmKsdV98XbbVGp1kgqjWbyfLi4RIwXHSQuzA3EwUaSGFkdAjGkF5IBySDcPM+zg 90yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776987682; x=1777592482; 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=StA7nYMfm5t2X9tzWJm+PHchxLT69xC2uLXYYKauqiA=; b=QQpbzcciO9L+jRRflhiRg8Kj6w800HVs17WD3ik+To0gWWsWskRHJoGxoja0kMMl68 mRSPDyUSAODSa0+mwZrTi6WeXmx04ExO+fQNDrdkb79uZOK8TkQ+UH90h3ALnZp0ILRM VdHm6pXPypnJc4cw8jMGtVn61wpq0qunJMfK69RtD3rYlWi6cNYRp7TUNQ7V6kDdgW/Z 1UZrEIktlxb/3LYcIo1mycayF3mdEihMFK/UEoQ87/nvNdsUJabjzloTjYyN57Xs7fdJ rM0m91xhrZ+thKtDvy5+Awa/VPmRcES/G4gEgSuKiHH0SzTGYVX9JNUX+OCNZvQ748kP PG6Q== X-Forwarded-Encrypted: i=1; AFNElJ+uCAJvR3tbS5CPWzMYysJWlQ/dKyqFqKtQ6OxR9rBsVy4WYnqt2r+28IUSEKmtMioWSiqouzFRdrNyZ1hk@postgresql.org X-Gm-Message-State: AOJu0YwARzQFggiAAcD10mmi++T4RERibsWQdHZW84FatUiCbzgynApe HeixJf+u6XUh381+G5Wo+iDyL0WFlsquKj4xFHpOfVqhTCO3DKrH5kAiPhQRK0f8PSvBRlXrpnc tFC6LSGhTgWL0lFsAsfTCKL90Iq3W4laIvgX4axXb X-Gm-Gg: AeBDiev3sByQaV7aT0xXTdzGPVEoQCYKfbx0NK6uqsIf1IdwIbByEKsuFxXEZxmvU05 S/CQApfCYOu6xYTS6Mymed+wv7lyPv4H/ZMtaCrM+0ZHOdArNpiy6IXkYNLHbJc5HDW6bwvUzXr sgwM7nqViG77rjtT6NDse24B/7Z64HomBN7Oy/cmm+4FVgU/yDgUSl+N1Q3MYd3YszUODuqV2Zx b0Q8+QCn5ocJeXoilgkH7eKbP/uX9hh7EC4No4zRArEMF6gnNgcjzLnL9Bh/evo3a9KM222KE0U cLD3gmQdzws6Ejc7HN4N X-Received: by 2002:a05:6871:eb07:b0:42f:d779:dee2 with SMTP id 586e51a60fabf-42fd779e3a7mr4087827fac.35.1776987681799; Thu, 23 Apr 2026 16:41:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mark Dilger Date: Thu, 23 Apr 2026 16:41:13 -0700 X-Gm-Features: AQROBzArTz3A2va86Rhzt1T-JptWnBhkqbLXdcnmiTjR0W_kXOMuEuy_cvxd8eM Message-ID: Subject: Re: GUC parameter ACLs and physical walsender To: Jeff Davis Cc: John Naylor , pgsql-hackers@postgresql.org, Andrey Borodin Content-Type: multipart/alternative; boundary="0000000000008b593d0650292ff2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008b593d0650292ff2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 23, 2026 at 2:06=E2=80=AFPM Jeff Davis wrot= e: > On Thu, 2026-04-23 at 10:57 -0700, Mark Dilger wrote: > > John is right that the hardcoded BKI_ROWTYPE_OID(2173) makes this > > non-backportable as-is. > > Right, but that leaves the questions: > > (a) Is this the right fix for master? > Yes. This approach has no problem in master that I can see. > (b) Is there anything we can do in the back branches, or we just leave > it as fix going forward only? > I don't see a solution. We could try to replace the error message with something better, but even that seems hard to phrase. Replacing "cannot read pg_class without having selected a database" with, say, "permission denied" would also be confusing for a role which does have the privilege but just can't verify it. --=20 *Mark Dilger* --0000000000008b593d0650292ff2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Apr 23,= 2026 at 2:06=E2=80=AFPM Jeff Davis <pgsql@j-davis.com> wrote:
On Thu, 2026-04-23 at 10:57 -0700, Mark Dilger wrote: > John is right that the hardcoded BKI_ROWTYPE_OID(2173) makes this
> non-backportable as-is.

Right, but that leaves the questions:

(a) Is this the right fix for master?

Y= es.=C2=A0 This approach has no problem in master that I can see.
= =C2=A0
(b) Is there anything we can do in the back branches, or we just leave
it as fix going forward only?

I don'= ;t see a solution.=C2=A0 We could try to replace the error message with
something better, but even that seems hard to phrase.=C2=A0 Replacin= g
"cannot read pg_class without having selected a database&q= uot; with, say,
"permission denied" would also be c= onfusing for a role which=C2=A0does have
the privilege but just c= an't verify it.

--

Mark Dilger<= /b>
--0000000000008b593d0650292ff2--