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
18/* avoid including primnodes.h here */
19typedef struct RangeVar RangeVar;
20
22{
23 const char *argname;
25};
26
28 struct StatsArgInfo *arginfo,
29 int argnum);
31 struct StatsArgInfo *arginfo, int argnum);
32extern bool stats_check_arg_pair(FunctionCallInfo fcinfo,
33 struct StatsArgInfo *arginfo,
34 int argnum1, int argnum2);
35
36extern void RangeVarCallbackForStats(const RangeVar *relation,
37 Oid relId, Oid oldRelid, void *arg);
38
40 FunctionCallInfo positional_fcinfo,
41 struct StatsArgInfo *arginfo);
42
43#endif /* STATS_UTILS_H */
void * arg
unsigned int Oid
Definition: postgres_ext.h:32
bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo, FunctionCallInfo positional_fcinfo, struct StatsArgInfo *arginfo)
Definition: stat_utils.c:293
bool stats_check_arg_array(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum)
Definition: stat_utils.c:59
void stats_check_required_arg(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum)
Definition: stat_utils.c:40
void RangeVarCallbackForStats(const RangeVar *relation, Oid relId, Oid oldRelid, void *arg)
Definition: stat_utils.c:131
bool stats_check_arg_pair(FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum1, int argnum2)
Definition: stat_utils.c:100
const char * argname
Definition: stat_utils.h:23