Allow pg_set_relation_stats() to set relpages to -1.
authorJeff Davis
Fri, 18 Oct 2024 17:44:15 +0000 (10:44 -0700)
committerJeff Davis
Fri, 18 Oct 2024 17:44:15 +0000 (10:44 -0700)
commitb391d882ff38da423dc99fc6224bde4be4100212
tree52cf96bce34458187f3db45405e7ccedc1aa6f47
parent1bd4bc85cac2b23484a6b568a752de0351c2cc5b
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
doc/src/sgml/func.sgml
src/backend/statistics/relation_stats.c
src/test/regress/expected/stats_import.out
src/test/regress/sql/stats_import.sql