PostgreSQL Source Code git master
|
#include "postgres.h"
#include "access/htup_details.h"
#include "access/table.h"
#include "catalog/catalog.h"
#include "catalog/dependency.h"
#include "catalog/indexing.h"
#include "catalog/objectaccess.h"
#include "catalog/pg_am.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
#include "commands/defrem.h"
#include "miscadmin.h"
#include "parser/parse_func.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include "utils/rel.h"
#include "utils/syscache.h"
Go to the source code of this file.
Functions | |
static Oid | lookup_am_handler_func (List *handler_name, char amtype) |
static const char * | get_am_type_string (char amtype) |
ObjectAddress | CreateAccessMethod (CreateAmStmt *stmt) |
static Oid | get_am_type_oid (const char *amname, char amtype, bool missing_ok) |
Oid | get_index_am_oid (const char *amname, bool missing_ok) |
Oid | get_table_am_oid (const char *amname, bool missing_ok) |
Oid | get_am_oid (const char *amname, bool missing_ok) |
char * | get_am_name (Oid amOid) |
ObjectAddress CreateAccessMethod | ( | CreateAmStmt * | stmt | ) |
Definition at line 43 of file amcmds.c.
References CatalogTupleInsert(), CharGetDatum(), ObjectAddress::classId, CStringGetDatum(), DEPENDENCY_NORMAL, DirectFunctionCall1, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errhint(), errmsg(), ERROR, GetNewOidWithIndex(), GetSysCacheOid1, heap_form_tuple(), heap_freetuple(), InvokeObjectPostCreateHook, lookup_am_handler_func(), namein(), ObjectAddress::objectId, ObjectIdGetDatum(), ObjectAddress::objectSubId, OidIsValid, recordDependencyOn(), recordDependencyOnCurrentExtension(), RelationGetDescr, RowExclusiveLock, stmt, superuser(), table_close(), table_open(), and values.
Referenced by ProcessUtilitySlow().
char * get_am_name | ( | Oid | amOid | ) |
Definition at line 192 of file amcmds.c.
References GETSTRUCT, HeapTupleIsValid, NameStr, ObjectIdGetDatum(), pstrdup(), ReleaseSysCache(), and SearchSysCache1().
Referenced by assignOperTypes(), getObjectIdentityParts(), IsThereOpClassInNamespace(), and IsThereOpFamilyInNamespace().
Oid get_am_oid | ( | const char * | amname, |
bool | missing_ok | ||
) |
Definition at line 183 of file amcmds.c.
References get_am_type_oid().
Referenced by get_object_address_unqualified().
|
static |
Definition at line 129 of file amcmds.c.
References CStringGetDatum(), ereport, errcode(), errmsg(), ERROR, get_am_type_string(), GETSTRUCT, HeapTupleIsValid, InvalidOid, NameStr, OidIsValid, ReleaseSysCache(), and SearchSysCache1().
Referenced by get_am_oid(), get_index_am_oid(), and get_table_am_oid().
|
static |
Definition at line 212 of file amcmds.c.
Referenced by get_am_type_oid().
Oid get_index_am_oid | ( | const char * | amname, |
bool | missing_ok | ||
) |
Definition at line 163 of file amcmds.c.
References get_am_type_oid().
Referenced by DefineOpFamily(), get_object_address_opcf(), and transformIndexConstraint().
Oid get_table_am_oid | ( | const char * | amname, |
bool | missing_ok | ||
) |
Definition at line 173 of file amcmds.c.
References get_am_type_oid().
Referenced by ATPrepSetAccessMethod(), check_default_table_access_method(), and DefineRelation().
Definition at line 234 of file amcmds.c.
References elog, ereport, errcode(), errmsg(), ERROR, format_type_extended(), get_func_name(), get_func_rettype(), InvalidOid, LookupFuncName(), and NIL.
Referenced by CreateAccessMethod().