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 1tGKQC-002H83-5D for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2024 15:57: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 1tGKQA-00GHM6-Mg for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2024 15:57: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 1tGKQA-00GHLw-2U for pgsql-hackers@lists.postgresql.org; Wed, 27 Nov 2024 15:57:42 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGKQ7-004LfT-D8 for pgsql-hackers@lists.postgresql.org; Wed, 27 Nov 2024 15:57:41 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3F5261140177; Wed, 27 Nov 2024 10:57:38 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Wed, 27 Nov 2024 10:57:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1732723058; x=1732809458; bh=E u/pWytF+hsQ3q8H4p19y2qoyKdPzLiCMCiCjGBJ7TU=; b=vXCEAt3KtvF+eoQug ZefZCzn+G1DnjfgCEJougX+fnWCeYkJIn3CLKpXvdyhKMz49skPcevwd+qqRGvI2 fQpi9pehl4b3kYoSYNA5CZGzVOhMzdKnQj2BFbdPTIwNBkqgtWI8eFw11isrIRi6 1fuuSMs7thY6yL+cjovxikvht8Th0VHkHkXLcFE4yG8KMgKFJfHnElywPGA5gW9E tAX98S0Ew0XM9HndL2SENpciGR0Sl2H+DxLt+SWhPLP1/2fQ+PwY0B7Fx4dd+8Z/ uB/6TjYMi2rBdkadcvLqvKKnqNg1OX4FpGP4i3fPOiW6NIMg9XfRGbt6pqvCE9E8 ufodA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeelgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohepuddvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrshhhuhhtohhs hhdrsggrphgrthdrohhsshesghhmrghilhdrtghomhdprhgtphhtthhopegsohgvkhgvfi hurhhmodhpohhsthhgrhgvshesghhmrghilhdrtghomhdprhgtphhtthhopegtohhrvgih rdhhuhhinhhkvghrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepjhhirghnrdhunhhivh gvrhhsrghlihhthiesghhmrghilhdrtghomhdprhgtphhtthhopehnrghthhgrnhgusgho shhsrghrthesghhmrghilhdrtghomhdprhgtphhtthhopehsmhhithhhphgsvddvhedtse hgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgrghhnuhhssehhrghgrghnuggvrhdrnhgv thdprhgtphhtthhopehpghhsqhhlsehjqdgurghvihhsrdgtohhmpdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Nov 2024 10:57:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1732723055; bh=Wrc4FqFBA7jZC9XkJmmyv8H9sY4yAJBCTo8WvFM/NTE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=IWOg6qHOpaaroRRnWRmfK/czqj3OeEdLtGGfPeB26LlqTTGJxS2IPOiyGQHiqovCX 8heYWtP5MEPUSUkr5L4rxz7whFtNL4JoldCy490wJ2Ci96V04BxANC9YbXAAETlzMl qA/wqb7kFN6h1uBaDTYuSulIqfNDDUqv+2GAe/ShWFgKAg1qMBjzbBag+jwIFkjbXW BFKsnK2V0MrYnDTo41ehxl2S/YAT+GRQ0bkYyUU1nsVfG9xyfIhqpOvW2ZzbtLq99R YXGK3g+J+orb3U3Epory3rmKUf/jtrex5dSffUkL6RU8JqepOue0LiO4qWah0iQXfS L5T/l5dBQqgCg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 6578095; Wed, 27 Nov 2024 16:57:35 +0100 (CET) Date: Wed, 27 Nov 2024 16:57:35 +0100 From: Alvaro Herrera To: Bruce Momjian Cc: Nathan Bossart , Magnus Hagander , Corey Huinker , Jeff Davis , jian he , Matthias van de Meent , Tom Lane , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers Subject: Re: Statistics Import and Export Message-ID: <202411271557.gaewckwu64dm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Nov-27, Bruce Momjian wrote: > On Wed, Nov 27, 2024 at 09:18:45AM -0600, Nathan Bossart wrote: > > > Maybe not remove the option, but add a required parameter: > > > --analyze-in-stages=all / missing > > > > > > That way, if the option is missing, the user can adapt the command line > > > according to need. > > > > I like this idea. > > Would there be a default? There would be no default. Running with no option given would raise an error. The point is: you want to break scripts currently running --analyze-in-stages so that they can make a choice of which of these two modes to run. Your proposal (as I understand it) is to remove the --analyze-in-stages option and add two other options. My proposal is to keep --analyze-in-stages, but require it to have a specifier of which mode to run. Both achieve what you want, but I think mine achieves it in a cleaner way. > Uh, do we have parameters that require a boolean option like this? I'm not sure what exactly are you asking here. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "La gente vulgar sólo piensa en pasar el tiempo; el que tiene talento, en aprovecharlo"