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 1tqcdj-007rzn-Bo for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Mar 2025 18:41:43 +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 1tqcdh-00EdYS-3l for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Mar 2025 18:41:41 +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 1tqcdg-00EdYJ-MM for pgsql-hackers@lists.postgresql.org; Fri, 07 Mar 2025 18:41:40 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tqcde-001Xck-1L for pgsql-hackers@lists.postgresql.org; Fri, 07 Mar 2025 18:41:39 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-224341bbc1dso13526095ad.3 for ; Fri, 07 Mar 2025 10:41:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1741372897; x=1741977697; 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=AypLnSjUnQT+C1o5AjkjKuDTXbKZ5pl+TXrzcYo+SB0=; b=XQ2kaEbZLkKjeXSFFBRuv96VwaJBDJJsfiZIRuHnBODsWVdd+BzGMSqec8Gk23eMDf LsUCXem+H2q3cbIZQmpfxadqppTMcyd2yU4C0LvvqOhVPb+lOvCQS4D5fFjEHNC//ykS QOiGn9r5CtAXhM6dpy1bH25TUk7iP6htI1X2Xc9FDdeUv8kmjdUqHe2dCLyAL2Ct5dc4 PtkBB5XxEtGdC3Qt0f1W50V3+3WON7ClYcXlb9MS6+oYWJFgxIFvVXDbMUUmUh4ImduD 8xK1hKB1JK6KGE8deD+C7lv88G3jXT6kfEPywKh4u+5+flFpdTvb0xHhuefJOnCj2A+0 pp6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741372897; x=1741977697; 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=AypLnSjUnQT+C1o5AjkjKuDTXbKZ5pl+TXrzcYo+SB0=; b=hihSe565feOLnD/IpWKokT+YNxnYwfX/Dfz4peH6O1fdCe5wGgxijTV4IU2dWKcLKa KNZ/V1lsB39FQEJc0U5YXrMKlwo/9H4Z4xMV7zC8eO9eoGOK125m3D9Xzwxq7e7Ktcay CkczpKJ7yK4S2Rude042pOpct01UqrAxz/m6QOls+a4qPN0S1SR0InzvLIG5jB4XpPlL YkkSJjy4YZx2dI3i56HJ75ERzaEOWvsxjRO/1hYcsM7rgNhwyO3hMPfEv5xeCpLDsVjN lsUrvfp6Hl6eJAw82raksgt0so50/4YYUmC/81OzKSiYljBXw6K/b4IPmCovlQMrAQRd 7N3w== X-Forwarded-Encrypted: i=1; AJvYcCW9Y7O7A1amOVShbW4VUqESVnvNVsqSFoYuNxsYIU6rqpDJ35XTQRG6LugtjcTTt8s8oTodC1R8dzRrsHXd@lists.postgresql.org X-Gm-Message-State: AOJu0YzoKiLrqRHTgSLVu3TwyDmOyKwsXhTNHK94mu+7PNSpHKOkWW+P T7ri9n7KDwSUsaN3BL6PVLpkHYS/0kBOgpr9OSKnsEMS4UQgIAb32MYS6LxB6w== X-Gm-Gg: ASbGncsR7UHTmvhA9hHHIgWjRjmwmOWFFZaAfUqaV8gDCH0uiCvma8XTE9UKQb70eEs Y/3PAdZn/4EryMGQV4YKUklQAvJM9Ns8wDOpHudFUYeQ3SBus5GdTc07cAfYr3FzVSSHhZaHcCh e5cymI8QydG0ZEvm+yj5nWokX9RdZDsUMoowq57mtiizg8ybzOJ/xfoL4MU2nxxPEPTQ98vUFkS jDNq9FC94KPA8t+ID9c9lLOEmzEUBkGJ7WO4rY4lsB+TNJBWb4qRfNaeZOBRSf7VD+9b+GtbaVC +UA9YTO92ls9vdZnHheRbF0R+Lk93TaZSWo1MTx4MC9uQA3OboqpFkJ/PHXCchTZL0blCXHi+LN VLgCmfB7xY4M= X-Google-Smtp-Source: AGHT+IFnOG0O2JjTmkE8aVmXbX9CSKLcMW2TU4kr4iDB3goVpdC8n8Ycy2uMcySwXmmcY9cTFh4wHQ== X-Received: by 2002:a17:903:2ca:b0:224:1ec0:8a0c with SMTP id d9443c01a7336-22428a97f16mr74424655ad.29.1741372897500; Fri, 07 Mar 2025 10:41:37 -0800 (PST) Received: from ?IPv6:2601:642:4c01:278b:568d:e0d:b2aa:6e64? ([2601:642:4c01:278b:568d:e0d:b2aa:6e64]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736a95af6b5sm2106335b3a.81.2025.03.07.10.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 10:41:36 -0800 (PST) Message-ID: Subject: Re: Statistics Import and Export From: Jeff Davis To: Robert Treat Cc: Robert Haas , Andres Freund , Corey Huinker , 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 Date: Fri, 07 Mar 2025 10:41:35 -0800 In-Reply-To: References: <6af48508a32499a8be3398cafffd29fb6188c44b.camel@j-davis.com> <6rpmhyrtci4epuzay7y5xvd2cwdwb6zmtt6ofxrvakyawxhm7s@6grajbpr4kij> 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 Fri, 2025-03-07 at 12:41 -0500, Robert Treat wrote: > Ugh... this feels like a bit of the combinatorial explosion, > especially if we ever need to add another option. Not quite that bad, because ideally the yes/no/only would not be expanding as well. But I agree that it feels like a lot of options. > I wonder if it would > be possible to do something simple like just providing > "--include=3D{schema|data|stats}" where you specify only what you want, > and leave out what you don't. Can you explain the idea in a bit more detail? Does -- include=3Dstatistics mean include statistics also or statistics only? Can you explicitly request that data be included but rely on the default for statistics? What options would it override or conflict with? Regards, Jeff Davis