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 1tGJWc-002B9t-Ek for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2024 15:00:18 +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 1tGJWZ-00FX1U-9D for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2024 15:00:15 +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 1tGJWX-00FX1L-VQ for pgsql-hackers@lists.postgresql.org; Wed, 27 Nov 2024 15:00:14 +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 1tGJWS-004LCh-Kg for pgsql-hackers@lists.postgresql.org; Wed, 27 Nov 2024 15:00:13 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id DA92711401AA; Wed, 27 Nov 2024 10:00:05 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Wed, 27 Nov 2024 10:00:05 -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=1732719605; x=1732806005; bh=R xriCTY9fdUjZI7tB2WXk8Vx9bP6FxxAJDcKYO5kLks=; b=PrpXdqYsojnhVuBNZ p6eJV1Ksk/T4qlQWwrpZ0n0+eUMC6DtE2AlbOX/3XNR2dkPMAMrHf4kkJ090u0Wk FW+Os70XXG+6wiACZdAUai7n2Zzgf9RF8bOSS65L0uIF65bs4w8hSpV+gx78OXEN zCJOket54I42czKkvpuROnv23HBreAf60CMidV9NFAqvIQd4JJfu6cnrWMpgYI9R QAZIWs5PcnAQ764UFd3LthURfOHqGWTkbaAtTC6tbs8zEo5epBO4ESBhb8Aleil8 /9nSKe1VYE49UAPozZU9yGwDxvHKipbc6zC5Rj1tJdaf6yGOQVBgci+4UYi5MsyR wWRsg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeelgdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpefgtdegleeggffftdeiuddufffh veekgfdufeethefgtefhkedvgeejlefhteehvdenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmpdhpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgpdhnsggprhgtphhtthhopeduvddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtoheprghshhhuthhoshhhrdgsrghprghtrdhoshhssehgmhgrihhlrdgtoh hmpdhrtghpthhtohepsghovghkvgifuhhrmhdophhoshhtghhrvghssehgmhgrihhlrdgt ohhmpdhrtghpthhtoheptghorhgvhidrhhhuihhnkhgvrhesghhmrghilhdrtghomhdprh gtphhtthhopehjihgrnhdruhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhr tghpthhtohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpth htohepshhmihhthhhpsgdvvdehtdesghhmrghilhdrtghomhdprhgtphhtthhopehmrghg nhhusheshhgrghgrnhguvghrrdhnvghtpdhrtghpthhtohepphhgshhqlhesjhdquggrvh hishdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhp ohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Nov 2024 10:00:04 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1732719602; bh=HhqpWssWdvfvpczhghhSwwb7zp2jJpZq4AUt3Yr2J0Q=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HnTQgEuBILwVFtpxLXCL1LyL5XAj3HPijuFaGz06Q8xXGNvk5GoBmqXQmBnnqdt3L EgOBwS6on9mb4RTihhN205/ZOIk2St8JSZgWRK0H7M1cBzFY/0THVrPD4lI/wHR9rB kdaWfajHXUjylAXdw+FE74tPC+/4vx/VXFvWAwZbYdjIywf0lh5y0USH+57oC6GfDs wiplFGuDBltXNp6Ppv/Uu7rTodBRYbavZkwWdGYBp9f/IzykVJGeuSZhLtrgF6d2yd c/BWXH/tFILCdPAvttR/Di1zBmLDmS470FgdYwi7yignFWdpxo7G1cnHVlO8lejPiN NTuRtZV6KhmwA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 31D8B95; Wed, 27 Nov 2024 16:00:02 +0100 (CET) Date: Wed, 27 Nov 2024 16:00:02 +0100 From: Alvaro Herrera To: Bruce Momjian Cc: Magnus Hagander , Corey Huinker , Jeff Davis , jian he , Matthias van de Meent , Tom Lane , Nathan Bossart , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers Subject: Re: Statistics Import and Export Message-ID: <202411271500.ooa5pt3nb5kp@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 02:44:01PM +0100, Magnus Hagander wrote: > > If you want to avoid both the surprise and confusion factor mentioned before, > > maybe what's needed is to *remove* --analyze-in-stages, and replace it with > > --analyze-missing-in-stages and --analyze-all-in-stages (with the clear warning > > about what --analyze-all-in-stages can do to your system if you already have > > statistics). > > > > That goes with the "immediate breakage that you see right away is better than > > silently doing the unexpected where you might not notice the problem until much > > later". > > > > That might trade some of that surprise and confusion for annoyance instead, but > > going forward that might be a clearer path? > > Oh, so remove --analyze-in-stages and have it issue a suggestion, and > make two versions --- yeah, that would work too. 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. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "How amazing is that? I call it a night and come back to find that a bug has been identified and patched while I sleep." (Robert Davidson) http://archives.postgresql.org/pgsql-sql/2006-03/msg00378.php