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 1syzbM-003WMP-Dk for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 20:17:37 +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 1syzbL-006des-Mg for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 20:17:36 +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 1syzbL-006deZ-Ca for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2024 20:17:35 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1syzbI-000OhH-Mv for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2024 20:17:35 +0000 Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-8378942ef8aso4513539f.3 for ; Thu, 10 Oct 2024 13:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728591452; x=1729196252; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GbtMTRn9MgpDqAEMsAyW6vckhoiyULH/hDl7tGDA+d0=; b=IsB7N3p4XJ8LMV3/sWMMHtHNuRmfMov0FeoEi3+egMyi6FnHd6FCZgI8HMKBsCoetG X1KRs82sRqnf8szR2t8g4fgH5JaqV71kBKBmMRuUBmkN6BiIZt70ITiOc8Xm6fiRGv7t ipOrEu0nQXkW3r/sJTmu2M6E016LJXhkBIrk0gxmsNB+qlO8CAHgNh+wL1JXYXcmH4vq 2LbOsyHBJnPz2KdA5mNPrk6JY5HL3VsYZ57A0kR1jf+orox6YLXqqSVJaWV8s34XmGrl WR+QdHec/hRHqSf+rIxu2msD/w5su08iaJmpafmJp2Wx7v0jbl83YFByEnWncbntpqS2 Pt6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728591452; x=1729196252; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GbtMTRn9MgpDqAEMsAyW6vckhoiyULH/hDl7tGDA+d0=; b=pwdYnXYaL0vX5FERTIoIPUrLJVP5bcuOYFUXcJ3QnZDD6o0E0dBcZ30L2JU/9MXtrS m8s4boQbl0/CE8viHOSmEArxzxth2+hqyuT4tVNjCzr05tio+Dbw2vKC2T/vvsXYguZA XMz9T4wfV9hljsZZajjJ8NWYhQ48BcHrJpnXMc+C+TH+u9tWyvOn1HhWAD3wCDcX0Sii LQPZUCQzctuKtThro9jBkYLhwi0CeWZWMTSwjdT52leyvnPgbzR3wZ5AeXQCnM39FSaG XqJszpDQEX061Ps8jW5Nqtca/p4gYoGBuHu5sjYhU0fuCJa1EceE3X++FWEn6DqK/E1v Nb2g== X-Forwarded-Encrypted: i=1; AJvYcCUYw1FFZmaRr6s8qjMcXDuHb0xeDVq9ePhMbhuDdQU1g9CuBNfO0BsQa4+Q8ap/wI06jmd8Fmk3auxF+Yo/@lists.postgresql.org X-Gm-Message-State: AOJu0YxPhfF3cpgmt4pyKthzQ1p7CXLBSXkjmRESyovPgoMcswul7QCm 72iqjlwtmCy0R2GeWF4CCkUBQuw0J0duIzkwXk+KUlwuymPMVbVQ X-Google-Smtp-Source: AGHT+IGc6/xKoMISCvWsaohZlJnrTa4Te1u2kYHtAViBkcCXXhRzi9Ozqohc8obDpw8NXfP3FwJNTA== X-Received: by 2002:a05:6602:3fd5:b0:835:3ffe:fe31 with SMTP id ca18e2360f4ac-83792bea3e5mr11788739f.8.1728591451969; Thu, 10 Oct 2024 13:17:31 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-8354b907160sm37325939f.13.2024.10.10.13.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 13:17:31 -0700 (PDT) Date: Thu, 10 Oct 2024 15:17:29 -0500 From: Nathan Bossart To: Corey Huinker Cc: jian he , Jeff Davis , Matthias van de Meent , Bruce Momjian , Tom Lane , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , Tomas Vondra , alvherre@alvh.no-ip.org Subject: Re: Statistics Import and Export Message-ID: References: <9e068620350f0158e791fc0b9a68df896d4402c6.camel@j-davis.com> <11bb2c7403d4a7421fe8b09df6737aa83976266e.camel@j-davis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Oct 10, 2024 at 03:49:16PM -0400, Corey Huinker wrote: >> One other question I had when looking at this patch is whether we could >> remove dataOnly/schemaOnly from DumpOptions and RestoreOptions. Once 0007 >> is applied, those variables become particularly hazardous, so we really >> want to prevent folks from using them in new code. > > Well, the very next patch in the series adds --statistics-only, so I don't > think we're getting rid of user-facing command switches. However, I could > see us taking away the dataOnly/schemaOnly internal variables, thus > preventing coders from playing with those sharp objects. That's what I meant. The user-facing options would stay the same, but the internal variables would be local to main() so that other functions would be forced to use dumpData, dumpSchema, etc. -- nathan