PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/relation.h"
#include "catalog/pg_database.h"
#include "miscadmin.h"
#include "statistics/stat_utils.h"
#include "utils/acl.h"
#include "utils/array.h"
#include "utils/builtins.h"
#include "utils/rel.h"
Go to the source code of this file.
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, int elevel) |
bool | stats_check_arg_pair (FunctionCallInfo fcinfo, struct StatsArgInfo *arginfo, int argnum1, int argnum2, int elevel) |
void | stats_lock_check_privileges (Oid reloid) |
bool stats_check_arg_array | ( | FunctionCallInfo | fcinfo, |
struct StatsArgInfo * | arginfo, | ||
int | argnum, | ||
int | elevel | ||
) |
Definition at line 51 of file stat_utils.c.
References ARR_NDIM, array_contains_nulls(), DatumGetArrayTypeP, ereport, errcode(), errmsg(), PG_ARGISNULL, and PG_GETARG_DATUM.
Referenced by attribute_statistics_update().
bool stats_check_arg_pair | ( | FunctionCallInfo | fcinfo, |
struct StatsArgInfo * | arginfo, | ||
int | argnum1, | ||
int | argnum2, | ||
int | elevel | ||
) |
Definition at line 92 of file stat_utils.c.
References ereport, errcode(), errmsg(), and PG_ARGISNULL.
Referenced by attribute_statistics_update().
void stats_check_required_arg | ( | FunctionCallInfo | fcinfo, |
struct StatsArgInfo * | arginfo, | ||
int | argnum | ||
) |
Definition at line 32 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().
void stats_lock_check_privileges | ( | Oid | reloid | ) |
Definition at line 126 of file stat_utils.c.
References ACL_MAINTAIN, aclcheck_error(), ACLCHECK_OK, ereport, errcode(), errdetail_relkind_not_supported(), errmsg(), ERROR, get_relkind_objtype(), GetUserId(), MyDatabaseId, NameStr, NoLock, object_ownercheck(), pg_class_aclcheck(), RelationData::rd_rel, relation_close(), relation_open(), RelationGetRelationName, RelationGetRelid, and ShareUpdateExclusiveLock.
Referenced by attribute_statistics_update(), pg_clear_attribute_stats(), and relation_statistics_update().