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 1tmfZe-008iR7-HM for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2025 21:01:11 +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 1tmfZc-008jH3-U9 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2025 21:01:08 +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 1tmfZc-008jGu-Ey for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2025 21:01:08 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tmfZX-000bkT-25 for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2025 21:01:08 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2211cd4463cso98274065ad.2 for ; Mon, 24 Feb 2025 13:01:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1740430862; x=1741035662; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=OBGRo8azuZKuDydgDMFHT6gP7bjoRInLfAUB06TDfto=; b=piA+hXqwXzPWDf1KBL/hUHgCev6zk/wirRqV1LXyFmw27gJpNdiLQOlj/qMXlp9mFG Iv8QF4IyKNQ+HQ3nIkaZqlwuo+LfkWztxT0G6w/S4XF2QqwWv3/RUwRhMm8nvpf8IJ+u RHvMdEBJtmdPAYuC4bcuG5TbFNOrRu7VHcVvtesaNUwuJqyADyuf01KnMVBOHuFQTn52 UUquULQqxUTmLqPJZO7RueloSDLQYyBOikavsoOf4lPO8TlcurmHYbbAbMbY450LrKP2 kyuhduaF4luXV+aX/CyEIs9ThKTAFrg3YLgNTUsyHeLKkfQHQOsi9swmQJkyQRhfmLLQ 8mzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740430862; x=1741035662; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OBGRo8azuZKuDydgDMFHT6gP7bjoRInLfAUB06TDfto=; b=PbDWeOQK258NZyet2hS7N5xDjsMSdTwAVM+aw+FBNFyvVCeF5yyqB+6BXBQny/aMoD 0wDIP0p6ysxJ1XWdtkVa+Ka0fkBdxDqTq19K4txYvHGjS/LeAKIQZSRXjkxlLcWvRM01 GtfKrNPdoJ95OTU86ohMK9U5LcJLNhZLYAeeIs2Xuj1olakMUKcDvIrM+O92UZycfyD4 g45l1I8SKND7BqPGHoK80ZZqpjnjRerptFwCy17cOfbWqlH/1O+lDQEbVeqGDjutOuRF 9GRSL4kaV+eRiRxI6/djVqyxlHfAxbFlN2Utaf+abJk6/8+U5OyV5Xnyk6emOZw7B3VQ S5jA== X-Forwarded-Encrypted: i=1; AJvYcCVB36VTeElxpB7Gg9NjgEVDxsZlbgX1WMRwC5GvVje8vOhLVNwOURlTwL7kRiykT/oCQ0xmMY4O9Z9sEBIh@lists.postgresql.org X-Gm-Message-State: AOJu0Ywl2oNL053EP4/REEoeHaWgMP42TlMs25hAIkeuLlRUpIrlJyYd 7XHT8NiDxXF9gPt0tkQ0NUPMMKIe5cYp3ArzSq7HwLPkkKuJoLuK+xDubkcABA== X-Gm-Gg: ASbGncuj2D/LU4BjD/w1mHUFglx+qdHTqj5i9wd0F7/doMQKIEiYaxvVW9rwRYUl0k4 o+62bei+5Su/8OMDRJ86QXifVDoPtuXZDS2p6A72Hh/055sM7nLd7OingCuLOzjKsRZUt93oEJG r+05GuzqFlQyX/p8HXx9afitJPfMXFCXEyXeGFF7XgcuY0Xkd+MUv1ZhivXI1UDGC8oav9Z3dTM /m5f0C3qCjAVnmETUUdat6P9tl7n8b0zVXL54+LL2m7x64Dtw0O/wsXh7mSdXeF6iMrYnppf8dI sEulhblk+H6QE6c7BvrbtT4k/AZ+YLtXfxZI3/VPRpy51Jv7kOHASugtXJvHjYHR60RA X-Google-Smtp-Source: AGHT+IE8dJRQwIGjk4TC3tH+uufYQlZurjI9Q9URXoKhOHUl+Fap/BR5Ifnf+xSAj11uV8O7FSecxA== X-Received: by 2002:a05:6a21:6d88:b0:1ee:dca3:e653 with SMTP id adf61e73a8af0-1f0fc13da3dmr840589637.17.1740430862207; Mon, 24 Feb 2025 13:01:02 -0800 (PST) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7347a7fa1d3sm82123b3a.111.2025.02.24.13.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 13:01:01 -0800 (PST) Message-ID: <8d13e4296408c53a93390525d0bcb906cbd13df4.camel@j-davis.com> Subject: Re: Statistics Import and Export From: Jeff Davis To: Andres Freund , Corey Huinker Cc: Tom Lane , 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 Date: Mon, 24 Feb 2025 13:01:00 -0800 In-Reply-To: References: <97b451228227c555be1a4f79c4a62ddec9a74f06.camel@j-davis.com> <1457469.1740419458@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2025-02-24 at 15:53 -0500, Andres Freund wrote: > I don't think that's necessarily true, hot pruning might help some, > as afaict > the restore happens in multiple transactions. Yeah, I just dumped and reloaded the regression database with and without stats, and saw no difference in the resulting size. So it's probably more correct to say "churn" rather than "bloat". Even running "psql -1", I see modest bloat substantially less than 2x. So if we agree that we don't mind a bit of churn and we will never need this (despite what ANALYZE does), then I'm OK removing it. Which makes me wonder why ANALYZE does it with inplace updates? Regards, Jeff Davis