PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
Oid | CreateSchemaCommand (CreateSchemaStmt *parsetree, const char *queryString, int stmt_location, int stmt_len) |
ObjectAddress | RenameSchema (const char *oldname, const char *newname) |
ObjectAddress | AlterSchemaOwner (const char *name, Oid newOwnerId) |
void | AlterSchemaOwner_oid (Oid schemaOid, Oid newOwnerId) |
ObjectAddress AlterSchemaOwner | ( | const char * | name, |
Oid | newOwnerId | ||
) |
Definition at line 300 of file schemacmds.c.
References AlterSchemaOwner_internal(), CStringGetDatum, ereport, errcode(), errmsg(), ERROR, GETSTRUCT, HeapTupleIsValid, name, NAMESPACENAME, ObjectAddressSet, ReleaseSysCache(), RowExclusiveLock, SearchSysCache1(), table_close(), and table_open().
Referenced by ExecAlterOwnerStmt().
Definition at line 277 of file schemacmds.c.
References AlterSchemaOwner_internal(), elog(), ERROR, HeapTupleIsValid, NAMESPACEOID, ObjectIdGetDatum, ReleaseSysCache(), RowExclusiveLock, SearchSysCache1(), table_close(), and table_open().
Referenced by shdepReassignOwned().
Oid CreateSchemaCommand | ( | CreateSchemaStmt * | parsetree, |
const char * | queryString, | ||
int | stmt_location, | ||
int | stmt_len | ||
) |
Definition at line 50 of file schemacmds.c.
References ACL_CREATE, aclcheck_error(), ACLCHECK_OK, allowSystemTableMods, AUTHOID, CreateSchemaStmt::authrole, PlannedStmt::canSetTag, check_is_member_of_role(), CMD_UTILITY, CommandCounterIncrement(), PlannedStmt::commandType, CurrentMemoryContext, elog(), ereport, errcode(), errdetail(), errmsg(), ERROR, EventTriggerCollectSimpleCommand(), get_database_name(), get_rolespec_oid(), GetOverrideSearchPath(), GETSTRUCT, GetUserIdAndSecContext(), HeapTupleIsValid, CreateSchemaStmt::if_not_exists, InvalidObjectAddress, InvalidOid, IsReservedName(), lcons_oid(), lfirst, makeNode, MyDatabaseId, NamespaceCreate(), NAMESPACENAME, NameStr, None_Receiver, NOTICE, OBJECT_DATABASE, ObjectAddressSet, ObjectIdGetDatum, pg_database_aclcheck(), PointerGetDatum, PopOverrideSearchPath(), PROCESS_UTILITY_SUBCOMMAND, ProcessUtility(), pstrdup(), PushOverrideSearchPath(), ReleaseSysCache(), rolname, CreateSchemaStmt::schemaname, OverrideSearchPath::schemas, SearchSysCache1(), SearchSysCacheExists1, SECURITY_LOCAL_USERID_CHANGE, SetUserIdAndSecContext(), PlannedStmt::stmt_len, PlannedStmt::stmt_location, transformCreateSchemaStmt(), and PlannedStmt::utilityStmt.
Referenced by CreateExtensionInternal(), and ProcessUtilitySlow().
ObjectAddress RenameSchema | ( | const char * | oldname, |
const char * | newname | ||
) |
Definition at line 219 of file schemacmds.c.
References ACL_CREATE, aclcheck_error(), ACLCHECK_NOT_OWNER, ACLCHECK_OK, allowSystemTableMods, CatalogTupleUpdate(), CStringGetDatum, ereport, errcode(), errdetail(), errmsg(), ERROR, get_database_name(), get_namespace_oid(), GETSTRUCT, GetUserId(), heap_freetuple(), HeapTupleIsValid, InvokeObjectPostAlterHook, IsReservedName(), MyDatabaseId, NAMESPACENAME, namestrcpy(), NoLock, OBJECT_DATABASE, OBJECT_SCHEMA, ObjectAddressSet, OidIsValid, pg_database_aclcheck(), pg_namespace_ownercheck(), RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), and table_open().
Referenced by ExecRenameStmt().