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.94.2) (envelope-from ) id 1vGvL7-0086Mn-Mt for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Nov 2025 08:27:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vGvL5-006N1t-DC for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Nov 2025 08:27:26 +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.94.2) (envelope-from ) id 1vGvL4-006N1l-GM for pgsql-hackers@lists.postgresql.org; Thu, 06 Nov 2025 08:27:26 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vGvL0-006H2z-06 for pgsql-hackers@lists.postgresql.org; Thu, 06 Nov 2025 08:27:25 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id C9F5BEC0264; Thu, 6 Nov 2025 03:27:18 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Thu, 06 Nov 2025 03:27:18 -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=1762417638; x=1762504038; bh=qUrc5tvl57 kYItiS7c6et6vWxT/0/5BecWxQs5LeZ6E=; b=fPjO6XhHM+EHgTJU2YUtot25Qc JgDUWLpNvK5tKQ2N+p1qemunM7jHe004jixcnnZW8qrBadR0Ypk1QB0Y/KLAW0z5 uYYx/foGqPOaKWjhcIdjnnR3awev8dbDFO32dI1ByIGaBCWngGQpU7SYTKjXYgYI shmSme1+GH6CtmkInVKMmMGvSwm8VNOeNivy+VkLqB8i1nrsa8N8Wo2PEiNAS4Ae zqwxKwPzJiL1FvYpmzNW6nw7ejfRGG8c/+wHXwiGRxaVZo/qtkDlrabKDknlyMth SnAy4qrxIsquGJydcisopTiBfDGnoDM2lBszlcz+DIjEOArICCn3amjLEq9A== 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= 1762417638; x=1762504038; bh=qUrc5tvl57kYItiS7c6et6vWxT/0/5BecWx Qs5LeZ6E=; b=i8l3PMV/3FBGJJgEScBQZ3cK8R9mi5kkC+Ik9X1f+fhymRjCQeU oIkXYVrdXy+PW3k+uMXf31+sdDQpgxfD2rEvg8Om9oGyXRvh7Z6EzVlibe+B5pjY 8hkXe8SdD7HRzAwSdlZnb6+0ztf9sFSwYeqvibHbKqJ8EMAmiR41eXLNGCWyPKOY 0rLKbko8dWM97LcL4Qk/lDmMDQoTvQGPz5FGmWMgy7G0G/4rzQbX+2yS3LaERiVC 8uFfse1S65X5g+2gQoYvGgaI+oQG93kp9ldjXCykVcQ89X2RudsA4QYwKSvSIDfb r1jcN7RW4+0crk5/fOH+nz+FEAdnrzZhlAA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddukeeifedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheptghorh gvhidrhhhuihhnkhgvrhesghhmrghilhdrtghomhdprhgtphhtthhopehtohhmrghssehv ohhnughrrgdrmhgvpdhrtghpthhtohepjhhirghnrdhunhhivhgvrhhsrghlihhthiesgh hmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhs rdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrd hprgdruhhs X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Nov 2025 03:27:16 -0500 (EST) Date: Thu, 6 Nov 2025 17:26:58 +0900 From: Michael Paquier To: Corey Huinker Cc: Tomas Vondra , jian he , pgsql-hackers@lists.postgresql.org, tgl@sss.pgh.pa.us Subject: Re: Extended Statistics set/restore/clear functions. Message-ID: References: <439a9947-e6a1-4ea9-84d8-1f843deaf6b1@vondra.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o79IQc5QQwHFeIZc" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --o79IQc5QQwHFeIZc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 05, 2025 at 01:38:56AM -0500, Corey Huinker wrote: > Paquier's response got sidetracked because of an errant subject line > change, so I will try to recap: That was a typo that found its way into the email subject. Sorry about that, that broke gmail's tracking at least. > in that off-list discussion I proposed (though I was mostly echoing what I > thought Paquier wanted): >=20 > 1. pg_ndistinct output function change. > 2. pg_ndistinct input function addition. > 3. pg_dependencies output function change > 4. pg_dependencies input function > 5. Expose attribute statistics function and rename them attstat_* or > statatt_* (edit: and fix lack of comments on the enums and arrays) > 6. pg_restore_extended_stats > 7. pg_dump with no ability to fetch old-format pg_ndistinct/pg_dependence= s. > (edit: and fix inherited bug) > 8. pg_dump working back as far as possible Thanks. I have begun reviewing it (more a bit later, still need to study more the structure of the code). For now, I have extracted some of the comment changes in 0005 and applied these independently. > Given that the pg_dump code no longer seems as bad, and Tomas is very much > in support of it, I've opted not to split out steps 7/8. That sounds like a way forward to me, then, in terms of using a new format and make pg_dump intelligent enough to deal with it based on what's in the past versions. -- Michael --o79IQc5QQwHFeIZc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmkMW9IACgkQnvQgOdby QH1yfA/+Nn7lVj3/UdRhRmCru3iomKWMz8dDge/sj/0RQBXEfFIuDIvxpxuYGvCd IUENWmnM5/ZI0d1PUH3uCXj4kB52UpHDDGUFS5JGSCAHcJrAs9syR0asGAwImUBC fqw36zxGdl5mSLkbgRwLdyJhyCy6isSc3QjomWLAEoMatrrSapMhwmx7yuCVH8qD Tdh4sgvjZ0jNpPp/78+rfY5yF2bziNG4PFcp0v4MJ1Iaek1GzhSLbwAxKX5dGKTT sZkC9CxgROejMAxL4RGzvC8i+kzZlSSFzpwQzBuppFAmapu8jwwUVSUSjD/2N0+s jBA15o3TrOvMPFFF/Fd/zxT6HbetipS/feYv6R3EgtQXZz/6ohUdmBvVrzZTqw/q R8AQKdG7E+lcpywD7U/WYdFj3GwxvV9UFSASJh0WTNx/sXaKlhoRqorHIg3OaJ/V h41blMyyBHmN1ULqhD2WBSg5IaC47awlJRfCnelqaHEuvPHYBA1KyBEs6uu6RxkB q4i5HY18jpbfKSY11BtVMp6oy6Vj5ibujZOihBjmv5dN7YAOWfL2vZT0noBN+EW2 yZE4mMetUnnBhCMw4CGI3MaZxvNJ8+69h4TqywZD5WpI1FcJ5I4eRrunMMf4AGQ3 vJ3PthtVJmdGHI6l6rd+A9SP51YzH+AT3YZMerlKWEfmI0TDNbo= =s551 -----END PGP SIGNATURE----- --o79IQc5QQwHFeIZc--