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 1tn57R-001qu3-0U for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2025 00:17:45 +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 1tn57P-00BIXD-Gg for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2025 00:17:43 +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 1tn57P-00BIX4-0a for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2025 00:17:43 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tn57M-0006KI-0F for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2025 00:17:42 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-220bfdfb3f4so25707765ad.2 for ; Tue, 25 Feb 2025 16:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1740529059; x=1741133859; 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=9rdwe0eOAXllrEPrVhJ/StUoLHT5gBPqK4DoEkg+pCI=; b=vbIN60Rp36dzV9atG75UTBYRkYvQHbGQXuvS/VeNRiv7vt6czy18SLahNhUe5/tX/V ZHTagyR/Zo8jdXdhzO+6VtphGmvYEwE/Fw4z2ECzxILFq2lLpSIOLZV/NFigWFDh6A6C iBgq4y3fwFRZsAQKTL1NNsLA/Q62OWNpWQai2AiSrC4eAIlq6nK42yNRbPeGNfaBlnse wkS6MQVEgdOZN6B2xC+RYV8IEB3a4ghlcMlnFEOycyo64LOTAu9N5exRxqLmYk5G0ZiG P0OwME5NGTWctrE38H2MnP6utZKpK9wGTL/O7OYE7xCRI3VVOiKDiosxjwOhgzI9vvDC 88Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740529059; x=1741133859; 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=9rdwe0eOAXllrEPrVhJ/StUoLHT5gBPqK4DoEkg+pCI=; b=MJmVBPxBfblZjiWNmlPLICYVoWjPP9PyWg+TfLZCjiq6bbZ+Ht3QVIYy2AnveeoPaW fugLaYjX+wHj0l8Jfb6REV0YD3QbSNdkRCveIdRtGpMO6TaqrcKa3a7DC+hN+LZq9/b6 H9F2K8H8fkBymOKPMiuiXcvagaM1MCdYS5b6Yminezcon8dTcNjFV8i8MC8sCwbEmVWo jJc0PL7IxAHK9P1UC8S7LeDNY4eRGx0jefFe7tGjj4bhGSNHgxJFM38PeRumILPlgQUs 0VmsSHmwDDQawuC74HCZ6yAHsAws1gQXiEuBcLzraMEZpCrhkqliFNjB4nG3xmSzolIO 7BAw== X-Forwarded-Encrypted: i=1; AJvYcCXePWmn4eLaDVRuYbZvZudhIfiiVOJCqBRplrzwW2UBtCbtJ0cphsE0b7gmx+utJjj2ibSFSowBM9NS18T0@lists.postgresql.org X-Gm-Message-State: AOJu0Yy2CHrCA6V1oHfLFHWLmp8rSIWv7d20RvlaGTK/N1wNwP5jZzbJ wIoDeZ5QB+Gd+cO9KVIQldpMm07gfQLK638IAhlL6extc5ZL49HV8grXDR0n4w== X-Gm-Gg: ASbGnctR85tmiRObaX551BoYpDxkjYbtyTjifdcMfNJzQd7m/rTk3Gnw0J5Kfie8jmA HXOclmzmfdLcdEqWDqzvC849RVWVCL0W/yRAq4pYIP9Q9GrIeLCGOU0V8XPGSlw/LPOarUqpVzI CyBBqIGK/GMwXyFuv38YRW/TQ8IT8ZtKPMX0fD+Guy+uigI7X2LiQIFX9AW4Wux7QWipN2azxDh bkBPMUV/a5AN5aN2reAX0Xlw2d0r2JczHWcxPbjRmkAOyUSKe2N5aCD1c9gBhJ1IvosASqRtM6V VUy3XEO1vo0wF4y0HZk3lNS8YQ== X-Google-Smtp-Source: AGHT+IHCOLK7gUbjobifgSq9F/6/gB5k557b9SASg6oqRYv6ugypzvNdfDNKvptoN/87+oiJppKaww== X-Received: by 2002:a05:6a00:3909:b0:734:b33:d8ec with SMTP id d2e1a72fcca58-7348bd938fcmr2290930b3a.1.1740529058719; Tue, 25 Feb 2025 16:17:38 -0800 (PST) Received: from [172.18.4.23] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7347a6f8a74sm2250341b3a.56.2025.02.25.16.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 16:17:38 -0800 (PST) Message-ID: Subject: Re: Statistics Import and Export From: Jeff Davis To: Corey Huinker Cc: Tom Lane , 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 Date: Tue, 25 Feb 2025 16:17:37 -0800 In-Reply-To: References: <3670503.1740173078@sss.pgh.pa.us> <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 Tue, 2025-02-25 at 15:31 -0500, Corey Huinker wrote: > Documentation: >=20 > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 The currently-supported relation statistics= are > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 relpages with a value of= type > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 integer, reltuples with a > value of > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 type real, and > relallvisible with a > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 value of type integer. >=20 > Could we make this a bullet-list? Same for the required attribute > stats and optional attribute stats. I think it would be more eye- > catching and useful to people skimming to recall the name of a > parameter, which is probably what most people will do after they've > read it once to get the core concepts. I couldn't make that look quite right. These functions are mostly for use by pg_dump, and while documentation is necessary, I don't think we should go so far as to make it "eye-catching". At least not until things settle a bit. > Question: >=20 > Do we want to re-compact the oids we consumed in pg_proc.dat? Done. > Specifically missing are: >=20 > * regclass not found > * attribute is system column > *=C2=A0scalars can't have mcelem > *=C2=A0mcelem / mcelem freqs mismatch (parts 1 and 2) > *=C2=A0scalars can't have elem_count_histogram > *=C2=A0cannot set most_common_elems for range type Done. And committed. Regards, Jeff Davis