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 <and...@anarazel.de> Discussion: https://postgr.es/m/cpdanvzykcb5o64rmapkx6n5gjypoce3y52hff7ocxupgpbxu4@53jmlyvukijo Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/f3dae2ae5856dec9935a51e53216400566ef8d4f Modified Files -------------- src/backend/statistics/relation_stats.c | 138 ++++++++++------------------- src/test/regress/expected/stats_import.out | 53 ----------- src/test/regress/sql/stats_import.sql | 33 ------- 3 files changed, 47 insertions(+), 177 deletions(-)