pgsql: Remove redundant pg_set_*_stats() variants.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove redundant pg_set_*_stats() variants.
Date: 2025-02-26 00:17:03
Message-ID: E1tn56k-0005t2-1d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)huinker(at)gmail(dot)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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-02-26 00:50:11 pgsql: Re-add GUC track_wal_io_timing
Previous Message Andres Freund 2025-02-25 14:23:30 pgsql: Change _mdfd_segpath() to return paths by value