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-2025, 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);
28 struct StatsArgInfo *arginfo, int argnum,
29 int elevel);
30extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
31 struct StatsArgInfo *arginfo,
32 int argnum1, int argnum2, int elevel);
33
34extern void stats_lock_check_privileges(Oid reloid);
35
37 FunctionCallInfo positional_fcinfo,
38 struct StatsArgInfo *arginfo,
39 int elevel);
40
41#endif /* STATS_UTILS_H */
unsigned int Oid
Definition: postgres_ext.h:32
bool stats_check_arg_array(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum, int elevel)
Definition: stat_utils.c:55
void stats_check_required_arg(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum)
Definition: stat_utils.c:36
bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo, FunctionCallInfo positional_fcinfo, struct StatsArgInfo *arginfo, int elevel)
Definition: stat_utils.c:261
bool stats_check_arg_pair(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum1, int argnum2, int elevel)
Definition: stat_utils.c:96
void stats_lock_check_privileges(Oid reloid)
Definition: stat_utils.c:130
const char * argname
Definition: stat_utils.h:20