From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow pg_set_relation_stats() to set relpages to -1.
Date: Fri, 18 Oct 2024 17:46:16 +0000
Message-ID: <E1t1r3J-001PAv-A9@gemulon.postgresql.org> (raw)
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(-)
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-committers@postgresql.org
Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Allow pg_set_relation_stats() to set relpages to -1.
In-Reply-To: <E1t1r3J-001PAv-A9@gemulon.postgresql.org>
* 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