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

From Jeff Davis
Subject pgsql: Use in-place updates for pg_restore_relation_stats().
Date
Msg-id E1tLAo5-0027Bi-GL@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Improve reporting of pg_upgrade log files on test failure
Next
From: David Rowley
Date:
Subject: pgsql: Use ExprStates for hashing in GROUP BY and SubPlans