From: | Jeff Davis <jdavis(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Allow pg_set_relation_stats() to set relpages to -1. |
Date: | 2024-10-18 17:46:16 |
Message-ID: | E1t1r3J-001PAv-A9@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Allow pg_set_relation_stats() to set relpages to -1.
While the default value for relpages is 0, if a partitioned table with
at least one child has been analyzed, then the partititoned table will
have a relpages value of -1.
Author: Corey Huinker
Discussion: https://postgr.es/m/CADkLM=fajh1Lpcyr_XsMmq-9Z=SGk-u+_Zeac7Pt0RAN3uiVCg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b391d882ff38da423dc99fc6224bde4be4100212
Modified Files
--------------
doc/src/sgml/func.sgml | 2 +-
src/backend/statistics/relation_stats.c | 9 +++++--
src/test/regress/expected/stats_import.out | 38 +++++++++++++++++++++++++++++-
src/test/regress/sql/stats_import.sql | 25 ++++++++++++++++++++
4 files changed, 70 insertions(+), 4 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2024-10-18 17:58:13 | pgsql: Disable autovacuum for tables in stats import tests. |
Previous Message | Peter Geoghegan | 2024-10-18 15:25:49 | pgsql: Optimize nbtree backwards scans. |