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 1tl320-008saA-DW for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Feb 2025 09:39:44 +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 1tl31y-003spN-7M for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Feb 2025 09:39:42 +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 1tl31x-003spE-Je for pgsql-hackers@lists.postgresql.org; Thu, 20 Feb 2025 09:39:42 +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 1tl31v-001w4F-0E for pgsql-hackers@lists.postgresql.org; Thu, 20 Feb 2025 09:39:41 +0000 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-220d28c215eso10284345ad.1 for ; Thu, 20 Feb 2025 01:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1740044377; x=1740649177; 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=M4jYfITNn2ueORuarcxcrupkYSXOqhIEA3NbHPeontA=; b=Wm83MwmyVGdIsPNBl78FUOmef5wVUvTnYntHVd4yVrY7qBhkQ8oEQpSU4DMRAVog8a 4qcL7sYflTKzftans3QQLYBq4KtRKRHue92kRcQCIHLkIkN89DP3/XwLT7jNTjjh2B72 ZZimBMiFDMePYtV3GW6XlBJdf9RqsgiEzI+1Eo3XaAg/tHn+q6+WX8ag5dy4tUK25kJz ig+hzqDXpVO6bhmU2MwFxtCBz5JspUrgQ1gXrmbVzG3Iib+taq1jq3Jpt7kPRdHL2P1I OkOY1zvie1kaDsQlomY6Edkl3Qgk/yRSEXjHIVyhPb9+8jFUanIfEzNtGKQ6ruv1Yen4 txfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740044377; x=1740649177; 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=M4jYfITNn2ueORuarcxcrupkYSXOqhIEA3NbHPeontA=; b=E27J2tUHpjxXexXb6dqMf0KMU8/jwBcZxeS7G6S1MzT+TmwBPWMnA7imXoWlNQSlf2 tOhy9Ym5XUOffIPRb75zs1IuRLR8Ca3R1HmUXx/HmaQJ71bBBDKoqqGhqIix3pV/RFF5 GgTuARYc6vFTcFKbDaO+O/C4flatpxJ6d48JASTzzikBe0g3XFnQv8WYmI2QA8UcK+w6 /DxPcu7s3ZBK3huI5K9gDHsEMeTxFcOqbHtEC2DmbLjAvxBeKf/XXrZrShqvgKubkLdb Jj8WBNczbFS3jDOA91r+cPKL66AMGTOtnjYoiiEvn6oG8S0ZEHT8PsDiuVQwClaYNAul A4ag== X-Forwarded-Encrypted: i=1; AJvYcCUI8wP7clMI0B+LR9hUVImv1I5uTBD6f6fnBoGn3D7gAC6KkiyBnG29KMi8w63xjUgbYqgIgCN6Tve+8jVp@lists.postgresql.org X-Gm-Message-State: AOJu0Yxnz7gazCn7MVirsB7+zixUGQNcZozhAs2bdm1VqHg2/Rt66OgS p0Y+HeCGvn2y3x+GfJ4LO//zAvfYwY4vDH+rynPcAJyfMRtjT9liioeGCYOSmQ== X-Gm-Gg: ASbGncsNyVzcR2Ub7zocRYOFiaXL8Ej1bPoYIqMSk1qm6QrjDZF/ZP+xidIlmXJ7NpP +zhX5uvUdet+hpAJF2xLIbs2TXFovxqaa86mf4lVWdC5vHQuPIWWRs9CtO43kyKyNewkcFPulDM 11iRBEWAtO5L+FIMncgpqdIbQIaX6+UE/7Up9QNv3dQwm/js1v00Zbl7PbcDvurGgaxolz8oZH4 j59NPrYGOqh55J9y/gXloy/dPvYn4xax/Vi1HGeL26wk1hH97SbvweWz27ZpwWWXn9AKnVy8ERr O06tjDbxEjQEyaaldBmEiBF4qNxJJRggVMQbbYrZrnXfrku+laf4dH/igg== X-Google-Smtp-Source: AGHT+IGB0mCBcgHGlvCicNjLqrhelbO7so/9XUy9xZKFuUqIIsjPqDUz2QhaekQzU6BGFsO67gJ0wA== X-Received: by 2002:a05:6a00:c8b:b0:72f:d7ce:5003 with SMTP id d2e1a72fcca58-73261900d8bmr31286707b3a.22.1740044376767; Thu, 20 Feb 2025 01:39:36 -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-7324276121bsm13420279b3a.126.2025.02.20.01.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2025 01:39:36 -0800 (PST) Message-ID: <348bd8970506784d20c864a9a731420ca15a2f63.camel@j-davis.com> Subject: Re: Statistics Import and Export From: Jeff Davis To: Corey Huinker Cc: Michael Paquier , jian he , Nathan Bossart , Bruce Momjian , Matthias van de Meent , Tom Lane , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org Date: Thu, 20 Feb 2025 01:39:34 -0800 In-Reply-To: <26e55538fa8c47d660642f367cd8a19333420789.camel@j-davis.com> References: <0b4c098ae3968aa23d6accb691f47bdba143aedd.camel@j-davis.com> <26e55538fa8c47d660642f367cd8a19333420789.camel@j-davis.com> 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 Wed, 2025-02-12 at 19:00 -0800, Jeff Davis wrote: > I'm still reviewing v48, but I intend to commit something soon. Committed with some revisions on top of v48: * removed the short option -X, leaving the long option "--statistics- only" with the same meaning. * removed the redundant --with-statistics option for pg_upgrade, because that's the default anyway. * removed an unnecessary enum TocEntryType and cleaned up the API to just pass the desired prefix directly to _printTocEntry(). * stabilized the 002_pg_upgrade test by turning off autovacuum before the first pg_dumpall (we still want it to run before that to collect stats). * stabilized the 027_stream_regress recovery test by specifying --no- statistics when comparing the data on primary and standby * fixed the cross-version upgrade tests by using the adjust_old_dumpfile to replace the version specifier with 000000 in the argument list to pg_restore_* functions. Regards, Jeff Davis