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 1vvsLt-007Y0h-2O for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Feb 2026 07:33:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvsLs-001XyH-1t for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Feb 2026 07:33:32 +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 1vvsLs-001Xy7-0w for pgsql-hackers@lists.postgresql.org; Fri, 27 Feb 2026 07:33:32 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vvsLp-00000001RoO-1xr5 for pgsql-hackers@lists.postgresql.org; Fri, 27 Feb 2026 07:33:31 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id DE13A7A00F7; Fri, 27 Feb 2026 02:33:29 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 27 Feb 2026 02:33:30 -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=1772177609; x=1772264009; bh=Od9zk78Rsf OEKIhNAZ/q9mqKsvEGivXM06uXKaj8xxs=; b=EjaXn+M+Zqfx2qy9GopN1YYqgs D7N4wamdmMuTTzhU/MDlncgm9hdJmTjNOu5vn3KNJsuuzJXFri2f88Lh3DdjgKoe gNwbVeXp9yg66oogo1XZtjLra55ucNHmNNOITXvRwkSnvOUcd+bwitIOLMm4BGyy f0hwoiKqk4bB9MDdUdEL7G50FzU86MICyAVJ8/sNwsOc9GYMkaEdlwBHQ2ryPrbc 2IkcbOmTp34mKVM3v+RO0rcYHV4u/WyOaoXKEVpxBGLXZ/HxzBFnYn553IJByqA+ 3HYjf+6csZYF45z+YJiGZww9o2pL/4T2frut+D08Ot3VeyIlDoliJvXqlrBQ== 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= 1772177609; x=1772264009; bh=Od9zk78RsfOEKIhNAZ/q9mqKsvEGivXM06u XKaj8xxs=; b=ijxk3LOI8eEBi6560ifMFsNWxyUk7/DXPu5mYkED1rRGASPxkC1 qyltzQ7DG1xry+gW5FUKlV2l1FFOTlrvODu8HULWFTriH6qlayofZZZyIz6W5RQ4 OGPL2EhZpHJsxhv7n6KSRO5IDwUjREwr2u+zw/N6XTaKlfI/QmPbLC3dkrDR7CA5 5CLiy7XIXncHHnWrXFwewfPcDWrtVxxzT1CAMr56IynKsMQZsVRfK+/2TGleW+gh BbJzgzz0gSMU+JtR1Kj5LdO77zgKQcEnv+y2A2+AuQW0D1WJMQpoLzyXs1u0RYhk S5tMaPlTS9ONBVAVpKGv89KWwQYWW3QAEhA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvgeekgedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttdej necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepveetjefgjeevgedukeehieeuieeu ieevueeiudegheevuefggfduueelgeelieetnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheplhhird gvvhgrnhdrtghhrghosehgmhgrihhlrdgtohhmpdhrtghpthhtoheptghorhgvhidrhhhu ihhnkhgvrhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrh hssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtohhmrghs sehvohhnughrrgdrmhgv X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Feb 2026 02:33:28 -0500 (EST) Date: Fri, 27 Feb 2026 16:33:24 +0900 From: Michael Paquier To: Chao Li Cc: Corey Huinker , Postgres hackers , Tomas Vondra Subject: Re: Defects with invalid stats data for expressions in extended stats Message-ID: References: <92BA3F52-47FB-49F2-A156-551D7BFC326E@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FBuQtPssWioOmJPC" Content-Disposition: inline In-Reply-To: <92BA3F52-47FB-49F2-A156-551D7BFC326E@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --FBuQtPssWioOmJPC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 27, 2026 at 02:51:40PM +0800, Chao Li wrote: > Here stats itself is destroyed, but memory pointed by > stats[0]~stats[i-1] are not free-ed, those memory are returned from > examine_attribute() by palloc0_object(). I am aware of that. This is not done on simplicity ground, keeping the cleanup of the memory context to ANALYZE in this case. > =E2=80=9CThis function returns sets =E2=80=A6=E2=80=9D, is =E2=80=9Cretur= ns=E2=80=9D a typo and not needed? That's a typo, thanks for re-reading. > The comment says =E2=80=9Cthis function does not use a function body=E2= =80=9D, but > the function has a body. This appears in two places. Let's just append a "SQL-standard" here, then. -- Michael --FBuQtPssWioOmJPC Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmhSMQACgkQnvQgOdby QH15DxAAj3//ofqvDhfD6b6yGkJXejfmVdLe3Fn7y73ntW1xQZV0zVONwp4fG3yT VYXbDuZX3T5vwii5T04utlnPR+DW+tf3+lfDw1fJs5SExROh4XwCCelpODzXajoq e0L/mAkH13r2j6nJDilk8uDr9tpeQbB5mh5rKcCPm6lnQNjImIj97DX6bTHH7SO3 wiIir8Hm52aIT5Sv2xsf5zFZoHYGepzHszeJMvnlAsRROqqViZ4bHYFhupPMcTpN i7kA2cErIlVCEM1VR1muXZVLtiMnGkvIaHD3uacp3kQtLVabKPEADrKIHIDivtte I0r+eWnYR2emr8WFpNa2GoCXdv3XVjtpLNViyHjwXyiDJYxpVDYbStyFIPfm7wpz Himl7hzzu1MUNWSdPRWsZAo9TadI0zp8A4bhmhvZIJEmigjcQ9tzL7P5Sk0/1b+z d3cV331ZJydv3yltWV2sxa/EmIHYImqM3UJ7xg72UuMCrlA6oDE6enOnM/u+oWmN 2t0WEF8uMJ+e+/7EcidByB6Bz2Ll28NeD42foIaWN3yuIjGARtrTSb/qcwOs9Bkh zNYSWP+fL+M1q8RlQ1xmgWEqMkeCaKknSSqMHjIIam1rNkYoDJS0vD/nULcw3A4U uTQJAlNFgM6Ua7HNSaLZ+hICV40m6qiLQ0Jb+jUcA+jVKxVF/8I= =UPKp -----END PGP SIGNATURE----- --FBuQtPssWioOmJPC--