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 1uouSW-00CnL8-OA for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Aug 2025 01:51: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 1uouSW-00Cta8-45 for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Aug 2025 01:51:20 +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 1uouSV-00Cta0-QY for pgsql-hackers@lists.postgresql.org; Thu, 21 Aug 2025 01:51:20 +0000 Received: from charmander.telsasoft.com ([50.244.222.1] helo=pryzbyj2023.telsasoft) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uouST-000wHW-2z for pgsql-hackers@lists.postgresql.org; Thu, 21 Aug 2025 01:51:19 +0000 Received: by pryzbyj2023.telsasoft (Postfix, from userid 1000) id C72313671; Wed, 20 Aug 2025 20:51:16 -0500 (CDT) Date: Wed, 20 Aug 2025 20:51:16 -0500 From: Justin Pryzby To: Fujii Masao Cc: Laurenz Albe , Mircea Cadariu , "Zechman, Derek S" , Adrian Klaver , pgsql-hackers@lists.postgresql.org Subject: Re: analyze-in-stages post upgrade questions Message-ID: References: <2cce9851-327a-4b1a-ab8e-531c2f92532b@gmail.com> <9c9cb744-b8c7-4d75-acad-595b3faba187@gmail.com> <9a93cffe79e2be1d9450a36e773a39dc456c241e.camel@cybertec.at> <46e2b1dac20cd7bf8f0c9af855afdfebefc0f9d0.camel@cybertec.at> 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 When analyzing a partitioned table, I think you should use ANALYZE ONLY, or otherwise avoid processing the children twice. Thanks for handling this. I was recently suprised to learn that vacuumdb doesn't process parents. -- Justin