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 1tmfGa-008dP1-MG for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2025 20:41: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 1tmfGZ-008Oyv-W2 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2025 20:41:27 +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 1tmfGZ-008Oyl-Mf for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2025 20:41:27 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tmfGX-000bZk-0r for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2025 20:41:27 +0000 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-2211acda7f6so108938945ad.3 for ; Mon, 24 Feb 2025 12:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1740429683; x=1741034483; 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=d7kGF/mCwu76wPlydCDGaBXbwvUkQ8Q+pjEN2HB9mBA=; b=R99ZmyCiXDuLvgOOxYcAzYwac0vjhUb+5uzqBHC9zSOjPKxU2AVUUvzgS4NUROwAIG zpjphweChVhLQCR2Fd5BMbeZOc4A/6u9+uQoTp1wBhXg6ihvUrsy2wYldenwI6IiLTD4 YgOwoiHfSmZTiJwXv5HctKMNZ+3XoUF3Vpbft8+i0lSinblQ0gbd+d4TcJKt9JuZSAPj x8X/yHA2Sj//mmfv61y5JnyuR4wg2ZqhgqV54X4uJNkB9WiyDSd8hyEheWKC2JZuCog8 m4I8IVRjqn9/aZ4sOKZ6icmFsXjXzCqhQg17sZ/BKkfjEgs9AdJxmcAdMuE/8BsPxenb v+Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740429683; x=1741034483; 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=d7kGF/mCwu76wPlydCDGaBXbwvUkQ8Q+pjEN2HB9mBA=; b=TFs4GhM9wLRDt5eAQBEhMPP9mVGUS9eul8rWF0Xi0TPG1+Q6MsMJ9AkIYZ3y4yCU4B xonxEUWTTbMrhx5p5qyfSJJ/7KXCW9BYswWUhcOFUT88xL/Kmb51Wb5eK0I/6uNZh2dF Ln1h5vBDxhl2cE01NzWXRYOnIZi9osE3H9+PhoG0jdnZMMS87ALjg7L0+/BfF4dFgBRd b0/eEA8pe91enCVfv2sW3tGQk43Rmx46NECvnCRfJFwTmmoETfV4uKsWgO7nmwrGPCz+ nEHhdVKBiO+hMZciP4CQNKj3MXbL0yzwsgNQ2odVzb/zoSPr2KjEwX3G6Ovt6xq6Yl7N 54Jg== X-Forwarded-Encrypted: i=1; AJvYcCUNxoNVoggfrliBIiSPsVDpujrU+bXVG6Ka1nTHKLwZgoHi3QECDYn5VHEADenfXBTVJCnqcvrftvU0xZkb@lists.postgresql.org X-Gm-Message-State: AOJu0Yzt4GpH9sQz4AnBqjrMGtTQI56P26fQI+mUIMao+iQMcN3iXrE/ h5qxlkUdtEOVrty0ZoueAMb7bQH4qH8phUwJ0lwYL+Ru6DI9yNVy7sDEYKKu6g== X-Gm-Gg: ASbGnctn10mOxNfDK5uvYRX1No4+UVgXpsHqkgnogeHak0wz+6IVtQE8h5YeHjP8TX+ /xITm5RsFOR11yobwUBC8v+xhzVIEgLny0IW5i6Upa249PBOmK9OalIaRw3dcbxzp6RgidyBBqW mlsG8C3ZHYbXg21yjekmLlNlxgQkQiDXYcMyq41999MY3EQMhVAuFvUykT0hdmcjg3XusUXUQ+C h2TFC/6ODqK55QVCAUY6t0r90HqEcuuywXAHNXnh31bVQ864y6DZpTlOhxr7HDnRAMGu9KIQLDF xm7w5StYrFDeJXlebUADioJJ/aBRQ5TMf5Th7WVgLpEcfxiSVI0yJN5DsKrUZFEsZscV X-Google-Smtp-Source: AGHT+IFwfsMsE0xaCLs68PGo9dwK0Q5OB/3D9xaPBW0zHo1ECUX7AAt4rv+Bfgue3c0yGluCn75nUQ== X-Received: by 2002:a05:6a21:69b:b0:1ee:6ec3:e82e with SMTP id adf61e73a8af0-1eef3d8813emr28442822637.29.1740429683518; Mon, 24 Feb 2025 12:41:23 -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 41be03b00d2f7-aedaa6424b5sm57077a12.58.2025.02.24.12.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 12:41:23 -0800 (PST) Message-ID: 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 12:41:21 -0800 In-Reply-To: References: <3728741.1740178078@sss.pgh.pa.us> <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:36 -0500, Andres Freund wrote: > > 1. will inplace update pg_class to avoid table bloat >=20 > I suspect that this is a *really* bad idea. The reason we added it is that it's what ANALYZE does, and a big restore bloats pg_class without it. I don't think those are major concerns for v1, so in principle I'm fine removing it. But the problem is that it affects the documented semantics, so it would be hard to change later, and we'd be stuck with the bloating behavior forever. Regards, Jeff Davis