pgsql: Use in-place updates for pg_restore_relation_stats().

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use in-place updates for pg_restore_relation_stats().
Date: 2024-12-11 00:42:26
Message-ID: E1tLAo5-0027Bi-GL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a43567483c617fb046c805b61964d5168c9a0553

Modified Files
--------------
doc/src/sgml/func.sgml | 8 ++
src/backend/statistics/relation_stats.c | 200 +++++++++++++++++++----------
src/test/regress/expected/stats_import.out | 61 +++++++++
src/test/regress/sql/stats_import.sql | 37 ++++++
4 files changed, 235 insertions(+), 71 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-12-11 00:47:34 pgsql: Use ExprStates for hashing in GROUP BY and SubPlans
Previous Message Michael Paquier 2024-12-10 23:49:51 pgsql: Improve reporting of pg_upgrade log files on test failure