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 1vO8qA-00Bv3q-0N for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Nov 2025 06:17:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vO8q7-00EK0x-2a for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Nov 2025 06:17:20 +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 1vO8q7-00EK0o-0E for pgsql-hackers@lists.postgresql.org; Wed, 26 Nov 2025 06:17:19 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vO8q4-001YX9-26 for pgsql-hackers@lists.postgresql.org; Wed, 26 Nov 2025 06:17:19 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id CAEB4140023C; Wed, 26 Nov 2025 01:17:13 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Wed, 26 Nov 2025 01:17:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1764137833; x=1764224233; bh=ID6yy0XNic vK9ywPungwlUdPkkmaQNBnsM3jVMAnQOE=; b=u84tY/tlsM6m24KhMsqLXfWgQJ H02ySNpa8cTJDiOMfrWdPz9SwLZ7UYLWzRDp3s9q3t4d7cy2O/1M7cXUQL5n5zxn usUrlCXK6lDHlFOguYilULnQjdURsqO/cZuS0mLJbAM0Z2KhplqWMb0sbg4h4jdX oFuvTsvm19XPn5IUBQycCzw/yB75urR6QqgSzHO8G8WSyLiGSrN7z7S7YS00lQJ4 snBU14ybJlKyqYUcHJ6O5/acivllS/0PnQ4uhoXbeehRe29K50IyrNFy+NSsWQlc kLAtIjCmPj9zYKKtT0xGpHNcI3HQlayMnfSVXbGPoavmwTrftvQ4pvRnY1Ug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1764137833; x=1764224233; bh=ID6yy0XNicvK9ywPungwlUdPkkmaQNBnsM3 jVMAnQOE=; b=SkvEtFNVUIzJgJMgZMCnpb7pQmgVYK19NvjVeBucqi9IjQfZpx9 LGqQbWTSDU1iiC/daKZ3QYQwJ9P1XNntUpsTKk4MVANzwZW1P098MxnJx9fBAek9 zx1MkZrrzQ4gp9qU5yPCoY6yw4O2HXy9o2sEBMPo3hjmbXIAFvACOxgn2VC4uRZP KAQw+aUwKqokokV7pgfBt0fQi1EcrOxCRd6kARz25FaHKeAuIK4s1+Og30mWq8tR uA1Xo65sZSAMIzClWWm71MQ2mba+Gp8WgGLll4Xy5ZVJohTqIV/qxTz/W36Rf+Mk 008XfgOdPqqm0CcsTHxcttyr8NYel5PN8Kw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeefieduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheptghorh gvhidrhhhuihhnkhgvrhesghhmrghilhdrtghomhdprhgtphhtthhopehjihgrnhdruhhn ihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtohepthhomhgrshesvh honhgurhgrrdhmvgdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhs rdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrd hprgdruhhs X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 Nov 2025 01:17:11 -0500 (EST) Date: Wed, 26 Nov 2025 15:16:54 +0900 From: Michael Paquier To: Corey Huinker Cc: jian he , Tomas Vondra , pgsql-hackers@lists.postgresql.org, tgl@sss.pgh.pa.us Subject: Re: Extended Statistics set/restore/clear functions. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Sl+yheKr3QDaT+P3" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Sl+yheKr3QDaT+P3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 25, 2025 at 11:50:14PM -0600, Corey Huinker wrote: > So if a function were previously static to one page, but now had utility > outside of that file, you would then consider changing the function > signature to add the consts? I ask because this may become relevant with > the statatt_* functions being moved in the remaining patches. That's the kind of analysis that requires a case-by-case lookup. The input functions were not really that worth bothering to me based on their logic being very isolated. The refactoring pieces with attribute stats that you are suggesting in 0003 may be indeed more relevant if done this way. -- Michael --Sl+yheKr3QDaT+P3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmkmm1YACgkQnvQgOdby QH0SUw//awVben4dED+cMqL5U909mB/kCTC1eXvgGxkDy7ZV2XwnD0WGoWxjwNI6 kk58UXSg9FFh7PErfl0I/sxMU+Wi6tqcjccsEexux+6VYRT+tlvpVZGRrsNG8GGt rjE+OIcdS5sE+JtHuP9Ee7mAkP9GmjeB9A3iOj/54cIZvCKfngpgwf6SM6D0Au8O e5sPQGGozRtp8s1jJaovSVLmExIG38QRqOLsMwox2ulmfR63vRCLeguKSzrzMmOR DovuzTtS9eHmnAzM7CfcgXpxK2krx6A28lK23ViUHsr2Rk4ey6yADBZPOyfmKep2 nh1B1WU2STkQBoAEOM26xS8cq6aXb5azfSmKT69rKOFEmrTy8ckB9ntt/qyos8wl Ws5Y9aIJ8zNdWBZfNkXqvmbR38wNSAc9RHo8IxJkjDvhrBobtDKlhqnz9BNVdjWO DTqCgq/IP8KqBzuav6LX5F8q78dJbaYfT5H5IdY4YS1Syb0o0mUJWdK968NKbVxI DdbcMjpTYzATWskaBTtE6MH/OfGV2KeL4npVjlJGBA6oZZ99nk47Xj+GV5b1IaMx mZaxInsMoR00UE7fbi8XgtDDDsAjFCWH8En4zcgcNB1rTIFSCvCQm+EjYUVj7bId 1g+Keq0wc1vE8PE8gljU+qyTQSuOzPmjmAJkG0DlHeLqvZPNT10= =X/bI -----END PGP SIGNATURE----- --Sl+yheKr3QDaT+P3--