aboutsummaryrefslogtreecommitdiff
path: root/src/include/statistics/stat_utils.h
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-10-22 15:06:55 -0700
committerJeff Davis <jdavis@postgresql.org>2024-10-22 15:06:55 -0700
commitce207d2a79017713c0293bf70132dc6d41166b03 (patch)
tree40a9575ea42f1c8eadd28e542a8f664aeb7a7ed1 /src/include/statistics/stat_utils.h
parentdbe6bd4343d8cdb1b3cf1f66d6f66dd876a6c09d (diff)
downloadpostgresql-ce207d2a79017713c0293bf70132dc6d41166b03.tar.gz
postgresql-ce207d2a79017713c0293bf70132dc6d41166b03.zip
Add functions pg_set_attribute_stats() and pg_clear_attribute_stats().
Enable manipulation of attribute statistics. Only superficial validation is performed, so it's possible to add nonsense, and it's up to the planner (or other users of statistics) to behave reasonably in that case. Bump catalog version. Author: Corey Huinker Discussion: https://postgr.es/m/CADkLM=eErgzn7ECDpwFcptJKOk9SxZEk5Pot4d94eVTZsvj3gw@mail.gmail.com
Diffstat (limited to 'src/include/statistics/stat_utils.h')
-rw-r--r--src/include/statistics/stat_utils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/statistics/stat_utils.h b/src/include/statistics/stat_utils.h
index 46057c60c03..e5f19d00609 100644
--- a/src/include/statistics/stat_utils.h
+++ b/src/include/statistics/stat_utils.h
@@ -24,6 +24,13 @@ struct StatsArgInfo
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);
+extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
+ struct StatsArgInfo *arginfo,
+ int argnum1, int argnum2, int elevel);
+
extern void stats_lock_check_privileges(Oid reloid);
#endif /* STATS_UTILS_H */