Do not use in-place updates for statistics import.
authorJeff Davis <jdavis@postgresql.org>
Tue, 25 Feb 2025 01:10:59 +0000 (17:10 -0800)
committerJeff Davis <jdavis@postgresql.org>
Tue, 25 Feb 2025 01:10:59 +0000 (17:10 -0800)
commitf3dae2ae5856dec9935a51e53216400566ef8d4f
tree73aebcef2e3a1e143967e61e4f7a885705945284
parent3ce357584e795762aa6dc45fafc21dccea7e5ec6
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
src/backend/statistics/relation_stats.c
src/test/regress/expected/stats_import.out
src/test/regress/sql/stats_import.sql