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: Remove redundant pg_set_*_stats() variants.
Date: Wed, 26 Feb 2025 00:17:03 +0000
Message-ID: <E1tn56k-0005t2-1d@gemulon.postgresql.org> (raw)

Remove redundant pg_set_*_stats() variants.

After commit f3dae2ae58, the primary purpose of separating the
pg_set_*_stats() from the pg_restore_*_stats() variants was
eliminated.

Leave pg_restore_relation_stats() and pg_restore_attribute_stats(),
which satisfy both purposes, and remove pg_set_relation_stats() and
pg_set_attribute_stats().

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://postgr.es/m/1457469.1740419458@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/func.sgml                     |  254 +++---
src/backend/catalog/system_functions.sql   |   32 -
src/backend/statistics/attribute_stats.c   |   98 +-
src/backend/statistics/relation_stats.c    |   24 +-
src/backend/statistics/stat_utils.c        |   30 +-
src/include/catalog/catversion.h           |    2 +-
src/include/catalog/pg_proc.dat            |   32 +-
src/include/statistics/stat_utils.h        |    8 +-
src/test/regress/expected/stats_import.out | 1339 ++++++++--------------------
src/test/regress/sql/stats_import.sql      | 1075 +++++++---------------
10 files changed, 872 insertions(+), 2022 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1tn56k-0005t2-1d@gemulon.postgresql.org>
Permalink:  ../E1tn56k-0005t2-1d@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tn56k-0005t2-1d@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: Remove redundant pg_set_*_stats() variants.
  In-Reply-To: <E1tn56k-0005t2-1d@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