PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
bool | IsSystemRelation (Relation relation) |
bool | IsToastRelation (Relation relation) |
bool | IsCatalogRelation (Relation relation) |
bool | IsSystemClass (Oid relid, Form_pg_class reltuple) |
bool | IsToastClass (Form_pg_class reltuple) |
bool | IsCatalogRelationOid (Oid relid) |
bool | IsCatalogNamespace (Oid namespaceId) |
bool | IsToastNamespace (Oid namespaceId) |
bool | IsReservedName (const char *name) |
bool | IsSharedRelation (Oid relationId) |
Oid | GetNewOidWithIndex (Relation relation, Oid indexId, AttrNumber oidcolumn) |
Oid | GetNewRelFileNode (Oid reltablespace, Relation pg_class, char relpersistence) |
Oid GetNewOidWithIndex | ( | Relation | relation, |
Oid | indexId, | ||
AttrNumber | oidcolumn | ||
) |
Definition at line 315 of file catalog.c.
References Assert, BTEqualStrategyNumber, CHECK_FOR_INTERRUPTS, GetNewObjectId(), HeapTupleIsValid, IsBinaryUpgrade, IsBootstrapProcessingMode, IsSystemRelation(), sort-test::key, ObjectIdGetDatum, RelationGetRelid, ScanKeyInit(), SnapshotAny, systable_beginscan(), systable_endscan(), and systable_getnext().
Referenced by AddEnumLabel(), AssignTypeArrayOid(), AssignTypeMultirangeArrayOid(), AssignTypeMultirangeOid(), CastCreate(), CollationCreate(), ConversionCreate(), CreateAccessMethod(), CreateConstraintEntry(), createdb(), CreateForeignDataWrapper(), CreateForeignServer(), CreateOpFamily(), CreatePolicy(), CreateProceduralLanguage(), CreatePublication(), CreateRole(), CreateStatistics(), CreateSubscription(), CreateTableSpace(), CreateTransform(), CreateTrigger(), CreateUserMapping(), DefineOpClass(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), EnumValuesCreate(), GetNewRelFileNode(), insert_event_trigger_tuple(), InsertExtensionTuple(), InsertRule(), LargeObjectCreate(), NamespaceCreate(), OperatorCreate(), OperatorShellMake(), pg_nextoid(), ProcedureCreate(), publication_add_relation(), SetDefaultACL(), StoreAttrDefault(), storeOperators(), storeProcedures(), toast_save_datum(), TypeCreate(), and TypeShellMake().
Definition at line 378 of file catalog.c.
References Assert, RelFileNodeBackend::backend, BackendIdForTempRelations, CHECK_FOR_INTERRUPTS, ClassOidIndexId, RelFileNode::dbNode, elog, ERROR, GetNewObjectId(), GetNewOidWithIndex(), InvalidBackendId, InvalidOid, IsBinaryUpgrade, MAIN_FORKNUM, MyDatabaseId, MyDatabaseTableSpace, RelFileNodeBackend::node, pfree(), RelFileNode::relNode, relpath, and RelFileNode::spcNode.
Referenced by ATExecSetTableSpace(), heap_create_with_catalog(), index_create(), and RelationSetNewRelfilenode().
Definition at line 175 of file catalog.c.
Referenced by AlterTableMoveAll(), heap_create(), and RelationBuildLocalRelation().
Definition at line 96 of file catalog.c.
References IsCatalogRelationOid(), and RelationGetRelid.
Referenced by CacheInvalidateHeapTuple(), check_publication_add_relation(), GlobalVisTestFor(), heap_index_delete_tuples(), heap_multi_insert(), index_create(), needs_toast_table(), RelationInitTableAccessMethod(), and transformOnConflictArbiter().
Definition at line 113 of file catalog.c.
References FirstBootstrapObjectId.
Referenced by check_relation_privileges(), is_publishable_class(), IsCatalogRelation(), IsSystemClass(), ReindexMultipleTables(), and ReindexRelationConcurrently().
bool IsReservedName | ( | const char * | name | ) |
Definition at line 210 of file catalog.c.
Referenced by check_rolespec_name(), CreateRole(), CreateSchemaCommand(), CreateTableSpace(), pg_replication_origin_create(), RenameRole(), RenameSchema(), and RenameTableSpace().
Definition at line 236 of file catalog.c.
References AuthIdOidIndexId, AuthIdRolnameIndexId, AuthMemMemRoleIndexId, AuthMemRoleMemIndexId, DatabaseNameIndexId, DatabaseOidIndexId, DbRoleSettingDatidRolidIndexId, PgAuthidToastIndex, PgAuthidToastTable, PgDatabaseToastIndex, PgDatabaseToastTable, PgDbRoleSettingToastIndex, PgDbRoleSettingToastTable, PgReplicationOriginToastIndex, PgReplicationOriginToastTable, PgShdescriptionToastIndex, PgShdescriptionToastTable, PgShseclabelToastIndex, PgShseclabelToastTable, PgSubscriptionToastIndex, PgSubscriptionToastTable, PgTablespaceToastIndex, PgTablespaceToastTable, ReplicationOriginIdentIndex, ReplicationOriginNameIndex, SharedDependDependerIndexId, SharedDependReferenceIndexId, SharedDescriptionObjIndexId, SharedSecLabelObjectIndexId, SubscriptionNameIndexId, SubscriptionObjectIndexId, TablespaceNameIndexId, and TablespaceOidIndexId.
Referenced by CacheInvalidateCatalog(), CacheInvalidateHeapTuple(), classIdGetDbId(), DeleteSecurityLabel(), get_object_address(), GetSecurityLabel(), RelationBuildLocalRelation(), SetLocktagRelationOid(), SetSecurityLabel(), and UpdateLogicalMappings().
bool IsSystemClass | ( | Oid | relid, |
Form_pg_class | reltuple | ||
) |
Definition at line 78 of file catalog.c.
References IsCatalogRelationOid(), and IsToastClass().
Referenced by IsSystemRelation(), pg_class_aclmask(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForDropRelation(), RangeVarCallbackForPolicy(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackOwnsRelation(), ReindexMultipleTables(), renameatt_check(), swap_relation_files(), and truncate_check_rel().
Definition at line 66 of file catalog.c.
References IsSystemClass(), RelationData::rd_rel, and RelationGetRelid.
Referenced by _bt_allequalimage(), ATAddForeignKeyConstraint(), ATRewriteTables(), ATSimplePermissions(), CreateStatistics(), CreateTrigger(), DefineQueryRewrite(), get_relation_info(), GetNewOidWithIndex(), heapam_index_build_range_scan(), heapam_relation_copy_for_cluster(), index_constraint_create(), index_create(), pg_nextoid(), rebuild_relation(), RelationReloadIndexInfo(), RemovePolicyById(), RemoveRewriteRuleById(), RemoveRoleFromObjectPolicy(), and RemoveTriggerById().
bool IsToastClass | ( | Form_pg_class | reltuple | ) |
Definition at line 158 of file catalog.c.
References IsToastNamespace().
Referenced by IsSystemClass().
Definition at line 193 of file catalog.c.
References isTempToastNamespace().
Referenced by AlterTableMoveAll(), heap_create(), IsToastClass(), IsToastRelation(), reindex_index(), reindex_relation(), and ReindexRelationConcurrently().
Definition at line 138 of file catalog.c.
References IsToastNamespace(), and RelationGetNamespace.
Referenced by CacheInvalidateHeapTuple(), heap_abort_speculative(), heap_insert(), ReorderBufferProcessTXN(), and ReorderBufferToastAppendChunk().