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+_zeac7pt0ran3ui...@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 via email to