Allow pg_set_relation_stats() to set relpages to -1.
Jeff Davis <jdavis@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +1 −1 |
| src/backend/statistics/relation_stats.c | modified | +7 −2 |
| src/test/regress/expected/stats_import.out | modified | +37 −1 |
| src/test/regress/sql/stats_import.sql | modified | +25 −0 |
Documentation touched
Discussion
- Statistics Import and Export 555 messages · 2023-08-31 → 2025-05-22