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 1vwsp1-001fS0-2f for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 02:15:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vwsp0-00EsCG-1k for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Mar 2026 02:15:46 +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 1vwsoz-00EsC8-36 for pgsql-hackers@lists.postgresql.org; Mon, 02 Mar 2026 02:15:46 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vwsow-00000001xFk-339f for pgsql-hackers@lists.postgresql.org; Mon, 02 Mar 2026 02:15:45 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id DF702EC054E; Sun, 1 Mar 2026 21:15:41 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Sun, 01 Mar 2026 21:15:41 -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=fm1; t=1772417741; x=1772504141; bh=fhSllEVwix u40l93IRejcx5Gx5Y3GJCo9cemmo9kZ1o=; b=ncnPCQqCTGL+rBc1yF+k++2q4A 1arR0BO8kVidfempK0nu/fMbcXKEZvQT+nfEAfakHsWpCwX0QCoWay+MDcrrOOkB Qh9OJoh47U99I/s7LUa3uQIrebFfD08S91kARSWRqDwP3L3RdzkhGzaQnR/GHDLw R6a6WMp0gpiwajv0sz5eHevAEBL2KGANM4OwFYuuwSqrr/Vbvm6BjETAOmDJxGKe tF5UO0dmH4dXuKVgWs2qlZ19tDA2moBRIkE+qsDF1rFeOXnsNNmPgob4AMucOHkr G6fjKrwjVttyn3Vrcp9GW+hdnW94JLIbLAfzFzkEcN3MXnhRk5rAyGWss0Hw== 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=fm1; t= 1772417741; x=1772504141; bh=fhSllEVwixu40l93IRejcx5Gx5Y3GJCo9ce mmo9kZ1o=; b=SKlyiuOk/c5e5zkSnTMbiKjG0elGrGR/ACK0sjNKZCITVBylN2b AxKIebZ6sj3froNCZJMUMaO9sUOAQIRQH+fXQiVwF3p5Icdv+lwC4S5WZk560QwW KKJzgSibhBGFB0zwBIv2xSMmp9JNfukGwZOh1LFF5gMm38u5/vPFLudKbTDiOOxA GhyXE45xUb5cV0s1p4HcbMhj9hM1Fl/IUIhnH14jbtuWhcj0ZriRsuCQ4vOih/gI YbNbvSa8W8/Q+omc54v4H9izmJoU/G2yyLSQDn3hloHV61KsvieT4BkDlYO3/Tff YzhG6Qsq5pjxAsSTwEjSNtIEJ25qQUJBnQw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvheeigeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheptghorh gvhidrhhhuihhnkhgvrhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhh rggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhope htohhmrghssehvohhnughrrgdrmhgv X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 1 Mar 2026 21:15:40 -0500 (EST) Date: Mon, 2 Mar 2026 11:15:36 +0900 From: Michael Paquier To: Corey Huinker Cc: Postgres hackers , Tomas Vondra Subject: Re: Defects with invalid stats data for expressions in extended stats Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kgkHW8jQtRoy6z/i" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --kgkHW8jQtRoy6z/i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 26, 2026 at 11:50:19PM -0500, Corey Huinker wrote: > Thanks for the explanation. Changes look good. Thanks. I have spent a few more hours head down on it, and applied the whole as two commits down to v14: one for the fix, one for the module. I have adjusted a couple of things in the module, with a few things to make it work in back-branches. A scan of pg_stats_ext_exprs felt in order after we fail to build the stats entirely, to make sure that there is nothing detected in the catalogs, so I have added a shorter version of the SELECT. -- Michael --kgkHW8jQtRoy6z/i Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmk8sgACgkQnvQgOdby QH1wJRAAin3/u8SrdpUpl3aVypZNghAVd7B/lVs/fMXgLD6u3I9htCQQG97vhDY7 NqUB1mdpm0oYUV+Xw99+a+FiS3swG7XW8of/kZeyKDmZFReZip//p6zKX2PspJot IX9r76hNIej0AKayw5MpfqNnAVqCoeAR2F+xGmUqNZ1/RHF3Y1U2H9uAVAxf/X71 VzH+xFtYq9rWverubqsb1V6uy4cOSK9qnXira1WcFdZKXG4mDuYlGW+/b07zhK/9 fv0m/yY1b7uVMbOntTMSPzFnvstzpByKAY9fHP+vSAmGIY4Ac00Quqrpi/4BgNvW 88hdftr9beqwXXKbdFb0a4E/nmPlePkQPyVstAwJBZjARf4pa6DMm1g702j/xNC8 lRtFKLVuzkSq+yo4P7OKCbsdnpVXts6nOZYhG3SYlJVCqvXudq7RMA2pGwFSMbiD qGlGX4lzZXppJj2GjcXmKcKbZ+MP4GKOksFekC9I//R+NheW1/aiAUEhiw+G3SgL s0ioxA7BsGvj859UBoJfDzIF+R1yoSwdFvM1Lw7QXqzTYDG4KhWDi+xu9mb1NRGd vJMM19J5cjY1TmG3C+/qufgbSRtrFqKLyNl/sXBYeEBfOHqgZhE/xGnKP1SflXqK 9y5s05Hh7t8E8CCChnWE/GjiyxgNHJ0KHmBoIqdl8SVgcMZ3hEk= =VJW+ -----END PGP SIGNATURE----- --kgkHW8jQtRoy6z/i--