Remove redundant pg_set_*_stats() variants.
Jeff Davis <jdavis@postgresql.org>
Remove redundant pg_set_*_stats() variants. After commit f3dae2ae58, the primary purpose of separating the pg_set_*_stats() from the pg_restore_*_stats() variants was eliminated. Leave pg_restore_relation_stats() and pg_restore_attribute_stats(), which satisfy both purposes, and remove pg_set_relation_stats() and pg_set_attribute_stats(). Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Discussion: https://postgr.es/m/1457469.1740419458@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +104 −150 |
| src/backend/catalog/system_functions.sql | modified | +0 −32 |
| src/backend/statistics/attribute_stats.c | modified | +33 −65 |
| src/backend/statistics/relation_stats.c | modified | +7 −17 |
| src/backend/statistics/stat_utils.c | modified | +14 −16 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +9 −23 |
| src/include/statistics/stat_utils.h | modified | +3 −5 |
| src/test/regress/expected/stats_import.out | modified | +393 −946 |
| src/test/regress/sql/stats_import.sql | modified | +308 −767 |
Documentation touched
Discussion
- Statistics Import and Export 555 messages · 2023-08-31 → 2025-05-22