Remove redundant pg_set_*_stats() variants.
authorJeff Davis <jdavis@postgresql.org>
Wed, 26 Feb 2025 00:15:47 +0000 (16:15 -0800)
committerJeff Davis <jdavis@postgresql.org>
Wed, 26 Feb 2025 00:15:47 +0000 (16:15 -0800)
commita5cbdeb98af9a8d4f683fbffa69cd74be1f4a084
treee138c9760fd5bc8e10a2373fb4e3434ddc3fe173
parentecbff4378beecb0b1d12fc758538005a69821db1
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
doc/src/sgml/func.sgml
src/backend/catalog/system_functions.sql
src/backend/statistics/attribute_stats.c
src/backend/statistics/relation_stats.c
src/backend/statistics/stat_utils.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/statistics/stat_utils.h
src/test/regress/expected/stats_import.out
src/test/regress/sql/stats_import.sql