Use in-place updates for pg_restore_relation_stats().
Jeff Davis <jdavis@postgresql.org>
Use in-place updates for pg_restore_relation_stats(). This matches the behavior of vac_update_relstats(), which is important to avoid bloating pg_class. Author: Corey Huinker Discussion: https://postgr.es/m/CADkLM=fc3je+ufv3gsHqjjSSf+t8674RXpuXW62EL55MUEQd-g@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +8 −0 |
| src/backend/statistics/relation_stats.c | modified | +129 −71 |
| src/test/regress/expected/stats_import.out | modified | +61 −0 |
| src/test/regress/sql/stats_import.sql | modified | +37 −0 |
Documentation touched
Discussion
- Statistics Import and Export 555 messages · 2023-08-31 → 2025-05-22