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 1tyP0N-006E89-9A for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Mar 2025 05:45:15 +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 1tyP0L-005EbV-Eq for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Mar 2025 05:45:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tyP0L-005EbN-4g for pgsql-hackers@lists.postgresql.org; Sat, 29 Mar 2025 05:45:13 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tyP0I-001kM5-2r for pgsql-hackers@lists.postgresql.org; Sat, 29 Mar 2025 05:45:11 +0000 Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-85b4277d0fbso97649539f.0 for ; Fri, 28 Mar 2025 22:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743227110; x=1743831910; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BDpxsU1PLT81zSGfITH5RRw6hiBH7kpTjvCi6yNyUNY=; b=bar9oVYu3mAOyXzuaEUwabw3mq2hiVTM8vKZXXZZ+jqJ+ZOMMbquCT2JR9XHR0sWoZ vJTxbsPaheItHOD0yS+xAO6hn8rjNwM7SKkyWu4kbdAZEIG/jtf5CH2zeuJeJZkOK06q c5a+Way3o7YEbGDvn+SzO+D9AsJ6yrozjDQBsSK3fXyLLlHFCDl5RFHom/kANEi/oJXv UA0DIZEO07hgc5A2sOF6UveoiGWgpbcPU6rjzZ8yShqBUswAQBGENoKX2KnrAIV1IdwC Tl2H5Nvw1f4ILmXWb1MnI3LBOkXOuwLa2rwawNSxd5rVgK1x+lwd3OrIJBsje0eUAZAU C4wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743227110; x=1743831910; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BDpxsU1PLT81zSGfITH5RRw6hiBH7kpTjvCi6yNyUNY=; b=vwKDozXBDrRhg/mRMx+eC9by088r+ZVfLX/A4i9HZyxV9e+JWA1t8gKZdSBYD0cAP8 PqAibgi8NPng2N73EBihQPgT0u74IJOF9J3TTPAkyOFuVvot0dItzNmaN1USaDxdGjS+ fNXkifrVE8sOYBQlSEpaBh8TrQjJjfgEnrgtvB8oeTJccW4keZMSeDFI6hqwAEB6E7Un 6CZvRvpMdUDFuqK42bsUgEYxxBuCyNNeScXeHJeCTsaukOpp/qZr1easBGyUFFa63Eot T/tDlIo6nLp5w1M+mQQfqKZ0QaWe2ETZl1j5HA0UuYZedtJ40UmWFg+MYHY2GihFwOfC Hdgw== X-Forwarded-Encrypted: i=1; AJvYcCWRjZ0oojSBslvvReUK6CKrsKoLFBTLkQ8vb/QaO2bFi8/HjIRhXI8TJifGKpvQRzb3jWCc4CmEzTrn4dl3@lists.postgresql.org X-Gm-Message-State: AOJu0Yz21NFu7HsIwxXoUIZVv+5jq4ZCzHR9m3O/jb5cT6IBLFrTk73c NV+tXqjH2Cs2dvqakELzEKu+cN2lKpsdHzbiyEbAEzdl8/+tSm/tjMK6kkx1TIJ2Tx8yAg3T8ss sEgnxRcE0KNqHpK/6ZYZDADZeP00= X-Gm-Gg: ASbGnctfrN06NHQq7Ka6prgqsVqU1nF3VufwzQaiGGTiPqRozP4WmHk8BSbpjma49oS juGooCq0fXpQrbszu2l+CWQMhKTDLWvg7RBiAtvd3W7U08Q9Ql3ZHLeXFtHT2PPxt2NW8VX5Bju yXskc9bRA/zR0wOCu01W2bL/p2zdqn1LiIvt6H X-Google-Smtp-Source: AGHT+IF5A0bWhdgf75MGGOpEPvjgSGi4Lw7sv/6qTI47GAS5qj/F6ge7ES/KJU5qMEj6bXpyvL0lfeo3wlzkSa8eIMU= X-Received: by 2002:a05:6e02:1a67:b0:3d0:21aa:a752 with SMTP id e9e14a558f8ab-3d5e08eaf0dmr23889645ab.2.1743227109704; Fri, 28 Mar 2025 22:45:09 -0700 (PDT) MIME-Version: 1.0 References: <6af48508a32499a8be3398cafffd29fb6188c44b.camel@j-davis.com> <6rpmhyrtci4epuzay7y5xvd2cwdwb6zmtt6ofxrvakyawxhm7s@6grajbpr4kij> <5812bf576f181e2f94944cab485cee46f611ed3e.camel@j-davis.com> <0576fa4dbd6e62e027b41e0ef9254896540f1cb4.camel@j-davis.com> In-Reply-To: From: Corey Huinker Date: Sat, 29 Mar 2025 01:44:57 -0400 X-Gm-Features: AQ5f1JoT_d1h85RkLC5IY-RIAEBrK-Tc_N62U9AGtDD_3rUxC-bRdFMNeuXP_1s Message-ID: Subject: Re: Statistics Import and Export To: Jeff Davis Cc: Robert Treat , Robert Haas , Andres Freund , Nathan Bossart , Tom Lane , Michael Paquier , jian he , Bruce Momjian , Matthias van de Meent , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org Content-Type: multipart/alternative; boundary="000000000000a314c2063174b0f3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a314c2063174b0f3 Content-Type: text/plain; charset="UTF-8" > > The first is that i_relallfrozen is undefined in versions earlier than > 18. That's trivial to fix, we just add "0 AS relallfrozen," in the > earlier versions, but still refrain from outputting it. > Ok, so long as we refrain from outputting it, I'm cool with whatever we store internally. > The second is that the pg_upgrade test (when run with > olddump/oldinstall) compares the before and after dumps, and if the > "before" version is 17, then it will not have the relallfrozen argument > to pg_restore_relation_stats. We might need a filtering step in > adjust_new_dumpfile? > That sounds trickier. Do we already have filtering steps that are sensitive to the "before" version dump? --000000000000a314c2063174b0f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The first is that i_relallfrozen is undefined in versions earlier than
18. That's trivial to fix, we just add "0 AS relallfrozen," i= n the
earlier versions, but still refrain from outputting it.

Ok, so long as we refrain from outputting it, I'm cool= with whatever we store internally.

=C2=A0
The second is that the pg_upgrade test (when run with
olddump/oldinstall) compares the before and after dumps, and if the
"before" version is 17, then it will not have the relallfrozen ar= gument
to pg_restore_relation_stats. We might need a filtering step in
adjust_new_dumpfile?

That sounds tricki= er. Do we already have filtering steps that are sensitive to the "befo= re" version dump?
--000000000000a314c2063174b0f3--