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

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

From
Jeff Davis
Date:
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(-)