aboutsummaryrefslogtreecommitdiff
path: root/src/include/statistics/stat_utils.h
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2025-02-25 16:15:47 -0800
committerJeff Davis <jdavis@postgresql.org>2025-02-25 16:15:47 -0800
commita5cbdeb98af9a8d4f683fbffa69cd74be1f4a084 (patch)
treee138c9760fd5bc8e10a2373fb4e3434ddc3fe173 /src/include/statistics/stat_utils.h
parentecbff4378beecb0b1d12fc758538005a69821db1 (diff)
downloadpostgresql-a5cbdeb98af9a8d4f683fbffa69cd74be1f4a084.tar.gz
postgresql-a5cbdeb98af9a8d4f683fbffa69cd74be1f4a084.zip
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
Diffstat (limited to 'src/include/statistics/stat_utils.h')
-rw-r--r--src/include/statistics/stat_utils.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/statistics/stat_utils.h b/src/include/statistics/stat_utils.h
index 6edb5ea0321..0eb4decfcac 100644
--- a/src/include/statistics/stat_utils.h
+++ b/src/include/statistics/stat_utils.h
@@ -25,17 +25,15 @@ extern void stats_check_required_arg(FunctionCallInfo fcinfo,
struct StatsArgInfo *arginfo,
int argnum);
extern bool stats_check_arg_array(FunctionCallInfo fcinfo,
- struct StatsArgInfo *arginfo, int argnum,
- int elevel);
+ struct StatsArgInfo *arginfo, int argnum);
extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
struct StatsArgInfo *arginfo,
- int argnum1, int argnum2, int elevel);
+ int argnum1, int argnum2);
extern void stats_lock_check_privileges(Oid reloid);
extern bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo,
FunctionCallInfo positional_fcinfo,
- struct StatsArgInfo *arginfo,
- int elevel);
+ struct StatsArgInfo *arginfo);
#endif /* STATS_UTILS_H */