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_namespace.h"
#include "utils/builtins.h"
#include "utils/rel.h"
#include "utils/syscache.h"
Go to the source code of this file.
Functions | |
Oid | NamespaceCreate (const char *nspName, Oid ownerId, bool isTemp) |
Definition at line 43 of file pg_namespace.c.
References Assert, CatalogTupleInsert(), ObjectAddress::classId, elog, ereport, errcode(), errmsg(), ERROR, get_user_default_acl(), GetNewOidWithIndex(), heap_form_tuple(), i, InvalidOid, InvokeObjectPostCreateHook, NameGetDatum(), namestrcpy(), OBJECT_SCHEMA, ObjectAddress::objectId, ObjectIdGetDatum(), ObjectAddress::objectSubId, OidIsValid, PointerGetDatum(), RelationData::rd_att, recordDependencyOnCurrentExtension(), recordDependencyOnNewAcl(), recordDependencyOnOwner(), RowExclusiveLock, SearchSysCacheExists1, table_close(), table_open(), and values.
Referenced by CreateSchemaCommand(), and InitTempTableNamespace().