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 1vtnls-00EL1b-2F for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Feb 2026 14:15:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vtnlr-009wrf-1a for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Feb 2026 14:15:47 +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 1vtnlr-009wrX-0Q for pgsql-hackers@lists.postgresql.org; Sat, 21 Feb 2026 14:15:47 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vtnln-00000000ZWt-36PO for pgsql-hackers@postgresql.org; Sat, 21 Feb 2026 14:15:46 +0000 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 00ED1140012A; Sat, 21 Feb 2026 09:15:42 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Sat, 21 Feb 2026 09:15:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1771683342; x= 1771769742; bh=1Z8X8xNdBClaYzgyp79czrolqK7DnRaGGLOrKX6UqF0=; b=S 3QdVz7+f+qZJLwgLJRXG7nRDlE2GdtKNmvY4k9eP6xIawHEQDh+YMsjF0XEuZKc6 j/grfoklNdEU6fkFF+YnZ+5CAk7SNgNboRDaTm6+CmESN2ZZiFtIrrW5lJomsP3+ PZaylJ+0jUyXLdslRcJzT8LbkXG+x+cZqnXDpK+lPLCueBo9kkA41+oKXKAImMbJ qURWc7tlJ4oSnAVyexA+0HKYLAdDvdjyf246wT+5pI3mfmrsxiF0FVFBRFXneHlC 6IC0+kU9koIy3iWIkNWzzhvL1/kve4MTIxEauEOzfB7lBK9a8PSvAP3odyWXeyvN sQ9Fib0lyYTktk9NTpT2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1771683342; x=1771769742; bh=1 Z8X8xNdBClaYzgyp79czrolqK7DnRaGGLOrKX6UqF0=; b=REik8hZSRSz+Jbr2U nHixKUi5E7gfeiLFFIf5oytvPGwcBe7iMaGKDI8zPaNUvMSMlqoVvi1iO0Mik1LI v0uJv1ul128f2FNPu538qNQAlfV3zKHMv/uhnvjzzhsfnUmXXyoA9RvadjjIak0B T/cDFN5dSc5RMJKyuJZb4Ptw8F1IJc7I7psu5fwVwWdKqnOb+STRZy/+lbTEyGHG XZ8ih/qSOcBPv4xIhwaHQp5UfLJ8rw9CCi3/JTapI5KnG0wB3B329QVvX2bggg25 lxVOt0hSXmPdt7li/qoFDWUH7kCrHSTxBkBrEdc5CB9J5PgW9+7jcHZ/ycxQN8r1 SYBZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvfeduheelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthho pegrnhgurhgvfiesughunhhslhgrnhgvrdhnvghtpdhrtghpthhtoheptghorhgvhidrhh huihhnkhgvrhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgv rhhssehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpgh hhrdhprgdruhhs X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 21 Feb 2026 09:15:42 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1771683341; bh=O8v3xe2kllnfw+hIUFV48mhLIe1DKmSzeXpAMEdcE4Y=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Iy5QXKqg9QrIUlnQm/PijcZ7CwfZn5pfkzVAaCUdId7f5RvE0XMDzsWpsRpfFY9LC LtVy54pHffXjFoAY/n5qn5VWtDQgVNWM7RYWD7/m4yDkGJk5Dk1TOXvYU4fySkulS4 QeLj2NVkiogqaPvlSRiLN59H2cI+XE2zjpEZtJdq7TEfKcTXG6ocRNp+SfhHvqPt2z IxE7oNjL9/Lqqts1eFXsT6+WD9pakMyaovdLPWhuxSSa8jpCttpmpHPInDuH8/KhWv ifeCGCAZgXllrkxqKUn65QWesXZj/N6Dq+UexlJlwyjS6pZleKT25epaI53mFWu2lf xpDVlDSj8/GaQ== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 19DC37A; Sat, 21 Feb 2026 15:15:41 +0100 (CET) Date: Sat, 21 Feb 2026 15:15:41 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Tom Lane Cc: Corey Huinker , Andres Freund , Andrew Dunstan , PostgreSQL-development Subject: Re: generating function default settings from pg_proc.dat Message-ID: <202602211352.du7vq2uzn2ot@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2659121.1771523629@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Feb-19, Tom Lane wrote: > After sleeping on it, I decided that much of the cognitive dissonance > here comes from the fact that elsewhere in the catalog data files > we represent the bootstrap user's name as POSTGRES, making it more > obvious that that's a placeholder and not the real value. If we do > that here and also drop the redundant grantor specifications, we get > > + proacl => '{POSTGRES=X,pg_read_all_stats=X}' }, > > which is still not the world's prettiest notation, but it feels > manageable for this purpose. Yeah, I like this better, for exactly that reason -- looking at the previous one I was worried that my setup would no longer work or behave differently, because my PG superusers are all called something not "postgres", and on first sight these ACL lines seemed like they wouldn't work properly. I tested this patch here and it seems to behave as intended. I like the tightening of ::1 processing as well, though maybe that should be its own preliminary commit, to make it clear that it isn't in fact changing anything. The deal with system_views.sql is not clear to me. Previously, the function underlying each view was in pg_proc.dat and the ACL was tweaked in system_views.sql together with the place where the function was used to define the view; now it seems the whole of the function (incl its ACL) is in pg_proc.dat, and only the view itself is in system_views.sql. I think this is an OK arrangement, but perhaps there should be a comment in system_views.sql about it. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Ninguna manada de bestias tiene una voz tan horrible como la humana" (Orual)