From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Keep stats up to date for partitioned tables |
Date: | 2021-08-28 20:03:58 |
Message-ID: | E1mK4YY-0007v7-SB@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Keep stats up to date for partitioned tables
In the long-going saga for analyze on partitioned tables, one thing I
missed while reverting 0827e8af70f4 is the maintenance of analyze count
and last analyze time for partitioned tables. This is a mostly trivial
change that enables users assess the need for invoking manual ANALYZE on
partitioned tables.
This patch, posted by Justin and modified a bit by me (Álvaro), can be
mostly traced back to Hosoya-san, though any problems introduced with
the scissors are mine.
Backpatch to 14, in line with 6f8127b73901.
Co-authored-by: Yuzuko Hosoya <yuzukohosoya(at)gmail(dot)com>
Co-authored-by: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Co-authored-by: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Reported-by: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Discussion: https://postgr.es/m/20210816222810.GE10479@telsasoft.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/375aed36ad83f0e021e9bdd3a0034c0c992c66dc
Modified Files
--------------
src/backend/commands/analyze.c | 37 +++++++++++++++++++++++++------------
src/backend/postmaster/pgstat.c | 11 ++++++++---
2 files changed, 33 insertions(+), 15 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-08-29 16:50:37 | pgsql: Doc: add a little about LACON execution to src/backend/regex/REA |
Previous Message | Alvaro Herrera | 2021-08-28 16:09:51 | pgsql: psql \dX: reference regclass with "pg_catalog." prefix |