PostgreSQL Source Code  git master
stat_utils.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * stat_utils.h
4  * Extended statistics and selectivity estimation functions.
5  *
6  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/statistics/stat_utils.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef STATS_UTILS_H
14 #define STATS_UTILS_H
15 
16 #include "fmgr.h"
17 
19 {
20  const char *argname;
22 };
23 
25  struct StatsArgInfo *arginfo,
26  int argnum);
27 extern bool stats_check_arg_array(FunctionCallInfo fcinfo,
28  struct StatsArgInfo *arginfo, int argnum,
29  int elevel);
30 extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
31  struct StatsArgInfo *arginfo,
32  int argnum1, int argnum2, int elevel);
33 
34 extern void stats_lock_check_privileges(Oid reloid);
35 
36 #endif /* STATS_UTILS_H */
unsigned int Oid
Definition: postgres_ext.h:31
bool stats_check_arg_array(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum, int elevel)
Definition: stat_utils.c:51
void stats_check_required_arg(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum)
Definition: stat_utils.c:32
bool stats_check_arg_pair(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum1, int argnum2, int elevel)
Definition: stat_utils.c:92
void stats_lock_check_privileges(Oid reloid)
Definition: stat_utils.c:126
const char * argname
Definition: stat_utils.h:20