|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/heapam.h"#include "catalog/indexing.h"#include "catalog/namespace.h"#include "catalog/pg_database.h"#include "catalog/pg_statistic_ext.h"#include "catalog/pg_statistic_ext_data.h"#include "miscadmin.h"#include "nodes/makefuncs.h"#include "statistics/stat_utils.h"#include "utils/acl.h"#include "utils/builtins.h"#include "utils/fmgroids.h"#include "utils/lsyscache.h"#include "utils/syscache.h"
Go to the source code of this file.
Enumerations | |
| enum | extended_stats_argnum { RELSCHEMA_ARG = 0 , RELNAME_ARG , STATSCHEMA_ARG , STATNAME_ARG , INHERITED_ARG , NUM_EXTENDED_STATS_ARGS } |
Variables | |
| static struct StatsArgInfo | extarginfo [] |
| Enumerator | |
|---|---|
| RELSCHEMA_ARG | |
| RELNAME_ARG | |
| STATSCHEMA_ARG | |
| STATNAME_ARG | |
| INHERITED_ARG | |
| NUM_EXTENDED_STATS_ARGS | |
Definition at line 38 of file extended_stats_funcs.c.
Definition at line 117 of file extended_stats_funcs.c.
References BoolGetDatum(), CatalogTupleDelete(), CommandCounterIncrement(), fb(), HeapTupleIsValid, ObjectIdGetDatum(), ReleaseSysCache(), RowExclusiveLock, SearchSysCache2(), table_close(), and table_open().
Referenced by pg_clear_extended_stats().
|
static |
Definition at line 70 of file extended_stats_funcs.c.
References BTEqualStrategyNumber, CStringGetDatum(), fb(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, ObjectIdGetDatum(), OidIsValid, ScanKeyInit(), SearchSysCacheCopy1, systable_beginscan(), systable_endscan(), and systable_getnext().
Referenced by pg_clear_extended_stats().
| Datum pg_clear_extended_stats | ( | PG_FUNCTION_ARGS | ) |
Definition at line 146 of file extended_stats_funcs.c.
References delete_pg_statistic_ext_data(), ereport, errcode(), errhint(), errmsg(), extarginfo, fb(), get_namespace_name(), get_namespace_oid(), get_pg_statistic_ext(), GETSTRUCT(), heap_freetuple(), HeapTupleIsValid, INHERITED_ARG, InvalidOid, makeRangeVar(), PG_GETARG_BOOL, PG_GETARG_DATUM, PG_RETURN_VOID, RangeVarCallbackForStats(), RangeVarGetRelidExtended(), RecoveryInProgress(), relname, RELNAME_ARG, RELSCHEMA_ARG, RowExclusiveLock, ShareUpdateExclusiveLock, STATNAME_ARG, stats_check_required_arg(), STATSCHEMA_ARG, table_close(), table_open(), TextDatumGetCString, and WARNING.
|
static |
Definition at line 52 of file extended_stats_funcs.c.
Referenced by pg_clear_extended_stats().