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 1tnPCg-00506p-3N for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2025 21:44:30 +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 1tnPCe-00F5mh-Ur for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2025 21:44:28 +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 1tnPCe-00F5mL-Km for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2025 21:44:28 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tnPCc-000GpE-0F for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2025 21:44:28 +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 51QLiKKQ2228775; Wed, 26 Feb 2025 16:44:20 -0500 From: Tom Lane To: Jeff Davis cc: Robert Haas , Andres Freund , Corey Huinker , 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: <3728741.1740178078@sss.pgh.pa.us> <97b451228227c555be1a4f79c4a62ddec9a74f06.camel@j-davis.com> <1457469.1740419458@sss.pgh.pa.us> <6cac9c19fd64d5a2bd8ecd794ce9e84e9998b814.camel@j-davis.com> Comments: In-reply-to Jeff Davis message dated "Wed, 26 Feb 2025 13:32:26 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2228773.1740606260.1@sss.pgh.pa.us> Date: Wed, 26 Feb 2025 16:44:20 -0500 Message-ID: <2228774.1740606260@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > That would be a separate thread, but it's good to know that there is a > general consensus that we don't want to use in-place updates for non- > critical things like stats (and perhaps eliminate them entirely). In > other words, the inconcistency likely won't last forever. I'm quite sure that the original argument for using in-place updates for this was not wanting a full-database VACUUM or ANALYZE to update every tuple in pg_class. At the time that definitely did lead to more-or-less 2x bloat. The new information we have now is that that's no longer the case, and thus the decision can and should be revisited. regards, tom lane