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 1tnKCF-004FuC-HW for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2025 16:23:43 +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 1tnKCE-0095pX-4s for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2025 16:23:42 +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.94.2) (envelope-from ) id 1tnKCD-0095pO-R9 for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2025 16:23:41 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tnKCB-000DRn-0B for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2025 16:23:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 51QGNZmB1779440; Wed, 26 Feb 2025 11:23:35 -0500 From: Tom Lane To: Jeff Davis cc: Corey Huinker , Andres Freund , Michael Paquier , jian he , Nathan Bossart , Bruce Momjian , Matthias van de Meent , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org Subject: Re: Statistics Import and Export In-reply-to: References: <3670503.1740173078@sss.pgh.pa.us> <3728741.1740178078@sss.pgh.pa.us> <97b451228227c555be1a4f79c4a62ddec9a74f06.camel@j-davis.com> <6af48508a32499a8be3398cafffd29fb6188c44b.camel@j-davis.com> <1698502.1740541206@sss.pgh.pa.us> <1704472.1740544569@sss.pgh.pa.us> <1707557.1740546344@sss.pgh.pa.us> <1778552.1740586434@sss.pgh.pa.us> Comments: In-reply-to Jeff Davis message dated "Wed, 26 Feb 2025 08:16:31 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1779438.1740587015.1@sss.pgh.pa.us> Date: Wed, 26 Feb 2025 11:23:35 -0500 Message-ID: <1779439.1740587015@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > I think you had mentioned upthread something about getting rid of the > table-driven logic, which is fine with me. Did you mean for that to > happen in this patch as well? Per Corey's description of the patch (I didn't read it yet), some of that already happened. I want to get to buildfarm-green ASAP, so I'm content to leave other cosmetic changes for later. BTW, one cosmetic change that I'd like to see is that any tables that don't go away get marked "const". I tried to make that happen with attribute_stats.c's tables in my WIP patch upthread, but found that the need for const-ness would propagate to some utility functions and such, so I put the idea on the back burner. regards, tom lane