Do not use in-place updates for statistics import.
Jeff Davis <jdavis@postgresql.org>
Do not use in-place updates for statistics import. The use of in-place updates was originally there to follow the precedent of ANALYZE and to reduce the potential for bloat on pg_class. Per discussion, it's not worth the risks. Reported-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/cpdanvzykcb5o64rmapkx6n5gjypoce3y52hff7ocxupgpbxu4@53jmlyvukijo
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/statistics/relation_stats.c | modified | +47 −91 |
| src/test/regress/expected/stats_import.out | modified | +0 −53 |
| src/test/regress/sql/stats_import.sql | modified | +0 −33 |
Discussion
- Statistics Import and Export 555 messages · 2023-08-31 → 2025-05-22