pgsql: Allow pg_set_relation_stats() to set relpages to -1. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Allow pg_set_relation_stats() to set relpages to -1.
Date
Msg-id E1t1r3J-001PAv-A9@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Optimize nbtree backwards scans.
Next
From: Jeff Davis
Date:
Subject: pgsql: Disable autovacuum for tables in stats import tests.