pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Mircea Cadariu <cadariu.mircea@gmail.com>
Cc: Zechman, Derek S <Derek.S.Zechman@snapon.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: analyze-in-stages post upgrade questions
Date: Wed, 20 Aug 2025 20:51:16 -0500
Message-ID: <aKZ7lMYGnnIo35c0@pryzbyj2023> (raw)
In-Reply-To: <CAHGQGwFS1uLe1U_edWDbxrCbqhrmqV1ag9WXWoFPuuK2YB3A8g@mail.gmail.com>
References: <2cce9851-327a-4b1a-ab8e-531c2f92532b@gmail.com>
	<CAHGQGwEvwpydO7hjnB51Q2zgS0ydv31X4HCFLNzMeqLr=poS8w@mail.gmail.com>
	<9c9cb744-b8c7-4d75-acad-595b3faba187@gmail.com>
	<CAHGQGwEj8PCk1OVveJ_F1sj_COrV95N-mfu_tLUn4gdcAM24kA@mail.gmail.com>
	<9a93cffe79e2be1d9450a36e773a39dc456c241e.camel@cybertec.at>
	<CAHGQGwGje3mv5sOmyCJ0NroNPF8938OYCOHMJZbegTekccZZ=g@mail.gmail.com>
	<ad3adb5df84c50d78e9c1d118f55a06f753dd7dd.camel@cybertec.at>
	<CAHGQGwHpA8nJfnX1Tk8CiVRUuZofACUFRHwk-8i=9yHYtmqiTw@mail.gmail.com>
	<46e2b1dac20cd7bf8f0c9af855afdfebefc0f9d0.camel@cybertec.at>
	<CAHGQGwFS1uLe1U_edWDbxrCbqhrmqV1ag9WXWoFPuuK2YB3A8g@mail.gmail.com>

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





view thread (33+ messages)  latest in thread

Message-ID: <aKZ7lMYGnnIo35c0@pryzbyj2023>
Permalink:  ../aKZ7lMYGnnIo35c0@pryzbyj2023/
Also on:    postgresql.org/message-id/aKZ7lMYGnnIo35c0@pryzbyj2023

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: pryzby@telsasoft.com, masao.fujii@gmail.com, laurenz.albe@cybertec.at, cadariu.mircea@gmail.com, Derek.S.Zechman@snapon.com, adrian.klaver@aklaver.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: analyze-in-stages post upgrade questions
  In-Reply-To: <aKZ7lMYGnnIo35c0@pryzbyj2023>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox