pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use in-place updates for pg_restore_relation_stats().
Date: Wed, 11 Dec 2024 00:42:26 +0000
Message-ID: <E1tLAo5-0027Bi-GL@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1tLAo5-0027Bi-GL@gemulon.postgresql.org>
Permalink:  ../E1tLAo5-0027Bi-GL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tLAo5-0027Bi-GL@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use in-place updates for pg_restore_relation_stats().
  In-Reply-To: <E1tLAo5-0027Bi-GL@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox