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 1tVFy2-006oLN-Dv for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jan 2025 20:14:22 +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 1tVFy1-007f5c-Uq for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jan 2025 20:14:21 +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 1tVFy1-007f5J-GO for pgsql-hackers@lists.postgresql.org; Tue, 07 Jan 2025 20:14:21 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tVFxy-000O0h-1f for pgsql-hackers@lists.postgresql.org; Tue, 07 Jan 2025 20:14:20 +0000 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2efd81c7ca4so19128530a91.2 for ; Tue, 07 Jan 2025 12:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1736280858; x=1736885658; 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=GUGVHsAe7guN7dDOexrN+A2+Bfc8QRsZJwZPIv9bfk4=; b=Zk64aqbmMxuMSpeYodj1adbX5+nAWfryCO6t2fUU0msnA+V+utgVtfcBZR0H1nWC99 /0YcmrGss58TPPIJbRPd3k9unISGgMcBrc2n+kx3gyJkjADqlR1ULXqDgTMSqi6a805r HihTHelsCIMcIFNPCRbO8pP2GbBUs7vReIs5dqanTJsBopc/1KblYKGJriZlpQ5sgJzw /xUNK8Pz+W24yyybYI3AGz3sbjEStY/XxRCbkfTQzNXgGjDacfomOEaHVWw9Qe/DgXZ1 pVVElW8roXBatrbC4io7hwdnPu4f6eqGb637Swqz/r93moA4s4VwRsj64ts4nNC2c+/1 T5Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736280858; x=1736885658; 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=GUGVHsAe7guN7dDOexrN+A2+Bfc8QRsZJwZPIv9bfk4=; b=clpcflddm6cXDGNUMQsxDvrxGB+lixEozE37QIyipwHtXLlc432wmIqjrmqMB9BiG1 kTiyVAZkuh4mjIROSsrvHKvK1MPWNNBBMY5ecayVANazTQYiBtzpsyjSVDXgFQ1fHa8D 6s+OjvUgBXGVlKp6G3Rg/T3sO7UvMzGh+4Ur+diGZ/FcGfO91qKxC8cxFabGMdH+EeWk C2iJ+pxuzLGu7lExUYQ8lduOtwKxRFFjHU0+f5zxb7tl/JViD6qR0nVsmoYevohMJ7sj DdK7gjJdhPpcr3BUhQsm9UNGxv2Yh38s+feRWkLWlc+O/mcWXgqRSu26I/uxNoQI/kix PUEg== X-Forwarded-Encrypted: i=1; AJvYcCVsgZAgB+9IeRImTVJwWFUJYy8pj4lHPIEPG1i8q2BapJHAzRZpPsgA2mAxJHwEcC9E7/BOz4lvfufDEp4h@lists.postgresql.org X-Gm-Message-State: AOJu0Yy03PFuYAdVlq6+tkuOlk6pIFgwGBuU8EF7e/Ex1WBLwEJmeX8q tFCaFztLTnZ3PuKNcgE1U8/UJyD21sLWG41182g9pG+htuxNpWOKqhXHJplfag== X-Gm-Gg: ASbGncsb2N82XxzpBtCcxGlz8C0xKhYQLVIiNgIP3MZ5Y2yXAPeAaz70xpZ1aJwm2TH vyDEJ9A2G4hYHobOP2GGSNiavGlsrLgnN44PmH3YnT+cMJ9KDqWWWiqMui7UUYDRF8KsDLCtOTE YX4xe/HxrPaYntPi0xRBUr5715JHv9g+nnopETynm7MjGWYHSSdYcUmFZYddJUKP4jxU7aK2XJG 5mQUSY+rLlM3iLyNRYd/WmnGNf4EzhYEbsnLwvfPWLink45QwEKYxxl X-Google-Smtp-Source: AGHT+IF0ED164XrtMBlvGhkkz1xrI+MySgzxi/N90sstaBQUfrybn6T1l4xFriRsZjaTDrdRWsHFfw== X-Received: by 2002:a17:90b:2dc8:b0:2ee:d024:e4f7 with SMTP id 98e67ed59e1d1-2f548db6c4dmr418509a91.0.1736280857880; Tue, 07 Jan 2025 12:14:17 -0800 (PST) Received: from [172.24.2.43] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f2ed82d456sm42119345a91.29.2025.01.07.12.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 12:14:17 -0800 (PST) Message-ID: Subject: Re: Statistics Import and Export From: Jeff Davis To: Corey Huinker , Nathan Bossart Cc: Bruce Momjian , jian he , Matthias van de Meent , Tom Lane , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org Date: Tue, 07 Jan 2025 12:14:15 -0800 In-Reply-To: References: <5d3a24216d15ce8a50d0fc085a13a410202014ca.camel@j-davis.com> <3bd40d2c686608196b8e04c2aaac9c57c447aae6.camel@j-davis.com> <39770e3aebfdf543fa2215fb300621a54b1b2634.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 Tue, 2025-01-07 at 01:18 -0500, Corey Huinker wrote: > Attached is the latest (and probably last) unified patchset before > parts get spun off into their own threads. In this thread I'm only looking at 0001. Please start a new thread for vacuumdb and extended stats changes. > 0001 - This is the unified changes to pg_dump, pg_restore, > pg_dumpall, and pg_upgrade. >=20 > It incorporates most of what Jeff changed when he unified v36j, with > typo fixes spotted by Bruce.=C2=A0There was interest in splitting > STATISTICS DATA into RELATION STATISTICS DATA and ATTRIBUTE > STATISTICS DATA. I think we should just stick with "STATISTICS DATA". > There was also interest in changing the prefix for STATISTICS DATA. > However, the only special case for prefixes=C2=A0currently relies on an > isData flag. Since there is no isStatistics flag, we would either > have to create one, or do strcmps on te->description looking for > "STATISTICS DATA". It's do-able, but I'm not sure it's worth it. I do like the idea of a "Statistics for ..." prefix, and I think it's doable. The caller needs some knowledge about that anyway, to correctly output the statistics dump when the schema is not requested. Tests should cover those cases, too. Regards, Jeff Davis