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 1wUFJ8-0012Bw-1i for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jun 2026 02:56: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 1wUFJ6-00CNeW-36 for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jun 2026 02:56:44 +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 1wUFJ6-00CNeO-2A for pgsql-hackers@lists.postgresql.org; Tue, 02 Jun 2026 02:56:44 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wUFJ4-00000000g3U-2ul8 for pgsql-hackers@lists.postgresql.org; Tue, 02 Jun 2026 02:56:43 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-39664fe2dd8so21099911fa.3 for ; Mon, 01 Jun 2026 19:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780369001; cv=none; d=google.com; s=arc-20240605; b=klxt9nn20IyHCOBg3kvk42NTYnqjbuDAqK9vybMTmIfvDIncpav74Ok2o+BmaqfnLU amyIYm1pFZKSnSC2Kjjkgrz38b6uFKsarpAZmowIE5/DzD0BB45++Z4/tXgdelhgS+k9 HvIqaqgGUMdwZK+IEu51uWn0je0DvQFFnkKRkxCgnxerV2eeWrbIxqHWoZwZII2Xexj8 COF9jBvv13wpjnDvtSJ1mbR2PdUQzaZAT5jE0mCx0dcWj1DQW2x6Kpr+mtcYQabXAK6q xYRK1gFpM6CUf+1SHgVmCWsa22PWmhLIgtR7pRdm4/ileCRtkrfZANGzAcSaHEn5QTbD z4Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FSk4Ud0v0KPxrE59y170Es7QRzfucX1hcsI9soouGJ4=; fh=a1NJczTXSIILlAXIMox1I3euc93fYfIItpkSccZAKAQ=; b=L1hectInSOzkK48TsvBlS1k+vhJxa/Od/q3GJ9M0UVCVjQzgx1iR29UUyVdMfum7GS z7Ju0jNQfeblx+wL//lhR3wPUzilhXrTiqqjDxxeALyWb0R+azEXH+VF4IL3wKxrVUw8 KB3EmmnWQIU6bk3Nj2psfd1lialioxtYk1Niwd1zHeuSYBn26xN7vCfjvdBYYRHpCJ+k ETs1DywdKhQKQR0ag043nGvL5Zh0rLMlGE5Y+OfpvhiEaXIUGeSQa9yKd7h2Q807GFOQ cxEYOhTgsArKl8WMrALC9ERhJyQJipTI1BnIfTRccEh0BNLqAKGnSD12h0AzJh2arXqc UD0A==; 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=1780369001; x=1780973801; 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=FSk4Ud0v0KPxrE59y170Es7QRzfucX1hcsI9soouGJ4=; b=FpUCwGP4WbsXbU96cCoZIXfknd1ZxcmiAux5E1wXhJFb5FJuYVYgGcgN+zwB2NMraf njN4OfQTbuA4nIoBCgnKGTJvxyjpVFiDd6SLT/UfuP2SBqqHi8C3a2wzVouHW4iVJZZA k/jiyyo+ua7+EPF5svzLpXi1UQMDq2SVUdYIrUrO5/T4KAPc8DmTFy1/NLSqJZI37cNA U7uUeZpjbjBVHNKsPgMuqbWXEVzJxQSJ9puzXDCTH+K0Ihvtjs+7EGWt3uPLYeo9ynNV KfiIENRsTHesqDj43ollOCgk2i73/kf5PBDokKLIExBkXAdk861Yrpk1rjSEGmPD+IpT wRBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780369001; x=1780973801; 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=FSk4Ud0v0KPxrE59y170Es7QRzfucX1hcsI9soouGJ4=; b=EZeXsNH/esZpDGCtxD9geVvgp+Qwh+/rSUJWcWN9YPIljDvEeoRrLXFDF2QceNKsIz gAvhCPk0rYmcmOB0xPJavV/SlPJi+rdqO4ZdDAxlp5ldsF6VZrpSFDA8GsW+Pxyo2bnC TnDgwzMMYp5zIwPjSNLC6jxKWZd3Jk6blb7dCvsIZvC9d3iDZIi36NDEU8QRxj1sNRnt L8erDSEbJQ8EVLrqRZTxeeNoWRRyemdxFVpl6Rq+O0KvN4cxUJ3+P/3Tt0a5OCtWha6/ 84k9xwmIQlwHTJppTKHT/aJgQZ3DgzCO8jC4PquVDJaG0ut2yf1wt5tsKKpqHAW7hNcx 4pSg== X-Forwarded-Encrypted: i=1; AFNElJ9Fh0uR3EXMAPlh9Qaezfix4clwnCqCo19FuThuHDwUhSZLiGUlyT2tveyMv3WDf2zZAUHc35CPeMsbNjmx@lists.postgresql.org X-Gm-Message-State: AOJu0Yy2dE8vo4npLhMXPOXwdG+pzEyuvAw0UgZPmPFqX4+IjdGXSbm7 dwhPNKmSumjanyb5d+F3/3w+7+cEaZQj8cELYB/ab8LIg5K063gbbp1fW/ZAR84PQRAtSnYTeTL 8/tEx311PCeBOaO5RofjqWXF8LSkQswQ= X-Gm-Gg: Acq92OFte94NYLxKAgvNROSLNuaBjYNh/Md3Ol0OjjEaDksVACeo0+9vxxG+vOaBHpG 9/RPaHX5EnLd5df8lcfbDwTvpuzSr8j+h8AGHZb372G7KwRfHaYB6e0iNIfwgNIPt+JTE9Pu+Md OZF9sr6R/FLUZxfrw8qy6K3d47OuNUBxOoMoCGvcyBPCttP3pAVI5ZHzBVb3tIi0aPdiH86p+4e ieZCceLznOX1PuVjY0z5LE1SKbkoAhoK/ZufX6M5G3MlzLwvRxKfpHTX6ctD59Ip9/1yDVTSc9q uRhAm2b3pjSs4hSc4FfrPcKAhA/AzgNw7eGQSzArMj3GGxA+8tZnLYTBFSM2/1E0VcX7Kb9gKup e2obOiqt6qKMYnGyglG4= X-Received: by 2002:a2e:bc83:0:b0:396:7927:2d14 with SMTP id 38308e7fff4ca-39679272f2cmr30444001fa.8.1780369000625; Mon, 01 Jun 2026 19:56:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Tue, 2 Jun 2026 08:26:29 +0530 X-Gm-Features: AVHnY4IPf9Jd_M5_pyK79aDnJtuOi_fDjsS30xqSmlQYe7rrJqTU5cONBgWQ5pE Message-ID: Subject: Re: Fix column privileges for pg_subscription.subwalrcvtimeout To: Fujii Masao Cc: Nisha Moond , 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 Tue, Jun 2, 2026 at 8:16=E2=80=AFAM Fujii Masao = wrote: > > On Mon, Jun 1, 2026 at 10:44=E2=80=AFPM Nisha Moond wrote: > > > > Hi Hackers, > > > > IIUC, all columns of pg_subscription, except subconninfo, are intended > > to be readable by non-superusers as well. A comment in > > system_views.sql also states: > > "-- All columns of pg_subscription except subconninfo are publicly read= able." > > > > However, 'subwalrcvtimeout' is currently not accessible: > > Test: > > postgres=3D# CREATE ROLE nisha LOGIN PASSWORD 'testpass'; > > CREATE ROLE > > postgres=3D# SET SESSION AUTHORIZATION nisha; > > SET > > postgres=3D> select subwalrcvtimeout from pg_subscription; > > ERROR: permission denied for table pg_subscription > > > > It appears the column-level privileges for pg_subscription were not > > updated when subwalrcvtimeout was added. > > > > Attached is a small fix patch to grant public access to this column, > > consistent with the existing behavior of the other pg_subscription > > columns. > > Thanks for the report and the patch! It looks good to me. > > Barring any objections, I'll commit it. For my own reference, since this > changes the catalog, I'll need to update the catalog version when committ= ing. > > BTW, should we add a regression test for column privileges on pg_subscrip= tion > to help catch similar issues in the future? > +1. It makes sense because I noticed that patch authors previously also omitted this part though in most cases those are caught in review. --=20 With Regards, Amit Kapila.