|
PostgreSQL Source Code git master
|
#include "fmgr.h"

Go to the source code of this file.
Data Structures | |
| struct | StatsArgInfo |
Typedefs | |
| typedef struct RangeVar | RangeVar |
Functions | |
| void | stats_check_required_arg (FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum) |
| bool | stats_check_arg_array (FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum) |
| bool | stats_check_arg_pair (FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum1, int argnum2) |
| void | RangeVarCallbackForStats (const RangeVar *relation, Oid relId, Oid oldRelid, void *arg) |
| bool | stats_fill_fcinfo_from_arg_pairs (FunctionCallInfo pairs_fcinfo, FunctionCallInfo positional_fcinfo, struct StatsArgInfo *arginfo) |
Definition at line 19 of file stat_utils.h.
Definition at line 131 of file stat_utils.c.
References ACL_MAINTAIN, aclcheck_error(), ACLCHECK_OK, arg, elog, ereport, errcode(), errdetail_relkind_not_supported(), errmsg(), ERROR, get_rel_relkind(), get_relkind_objtype(), GETSTRUCT(), GetUserId(), HeapTupleIsValid, IndexGetRelation(), InvalidOid, LockRelationOid(), MyDatabaseId, NameStr, object_ownercheck(), ObjectIdGetDatum(), OidIsValid, pg_class_aclcheck(), ReleaseSysCache(), RangeVar::relname, SearchSysCache1(), ShareUpdateExclusiveLock, and UnlockRelationOid().
Referenced by attribute_statistics_update(), pg_clear_attribute_stats(), and relation_statistics_update().
| bool stats_check_arg_array | ( | FunctionCallInfo | fcinfo, |
| struct StatsArgInfo * | arginfo, | ||
| int | argnum | ||
| ) |
Definition at line 59 of file stat_utils.c.
References ARR_NDIM, array_contains_nulls(), DatumGetArrayTypeP, ereport, errcode(), errmsg(), PG_ARGISNULL, PG_GETARG_DATUM, and WARNING.
Referenced by attribute_statistics_update().
| bool stats_check_arg_pair | ( | FunctionCallInfo | fcinfo, |
| struct StatsArgInfo * | arginfo, | ||
| int | argnum1, | ||
| int | argnum2 | ||
| ) |
Definition at line 100 of file stat_utils.c.
References ereport, errcode(), errmsg(), PG_ARGISNULL, and WARNING.
Referenced by attribute_statistics_update().
| void stats_check_required_arg | ( | FunctionCallInfo | fcinfo, |
| struct StatsArgInfo * | arginfo, | ||
| int | argnum | ||
| ) |
Definition at line 40 of file stat_utils.c.
References ereport, errcode(), errmsg(), ERROR, and PG_ARGISNULL.
Referenced by attribute_statistics_update(), pg_clear_attribute_stats(), and relation_statistics_update().
| bool stats_fill_fcinfo_from_arg_pairs | ( | FunctionCallInfo | pairs_fcinfo, |
| FunctionCallInfo | positional_fcinfo, | ||
| struct StatsArgInfo * | arginfo | ||
| ) |
Definition at line 293 of file stat_utils.c.
References StatsArgInfo::argname, generate_unaccent_rules::args, FunctionCallInfoBaseData::args, ereport, errhint(), errmsg(), ERROR, extract_variadic_args(), format_type_be(), get_arg_by_name(), i, NullableDatum::isnull, pg_strcasecmp(), stats_check_arg_type(), TextDatumGetCString, types, and NullableDatum::value.
Referenced by pg_restore_attribute_stats(), and pg_restore_relation_stats().