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.96) (envelope-from ) id 1wVBeR-001lcK-2V for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jun 2026 17:14:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVBeQ-0082gc-1z for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jun 2026 17:14:38 +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.96) (envelope-from ) id 1wVBeQ-0082gT-14 for pgsql-hackers@lists.postgresql.org; Thu, 04 Jun 2026 17:14:38 +0000 Received: from charmander.telsasoft.com ([50.244.222.1] helo=pryzbyj2023.telsasoft) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wVBeO-000000016dD-11U9 for pgsql-hackers@lists.postgresql.org; Thu, 04 Jun 2026 17:14:37 +0000 Received: by pryzbyj2023.telsasoft (Postfix, from userid 1000) id BE6652A4B; Thu, 4 Jun 2026 12:14:34 -0500 (CDT) Date: Thu, 4 Jun 2026 12:14:34 -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: <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 Checking back. On Wed, Aug 20, 2025 at 08:51:16PM -0500, Justin Pryzby wrote: > 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.