#include "catalog/genbki.h"
Go to the source code of this file.
#define Anum_pg_class_relacl 27 |
Definition at line 123 of file pg_class.h.
Referenced by ATExecChangeOwner(), ExecGrant_Relation(), InsertPgClassTuple(), and pg_class_aclmask().
#define Anum_pg_class_relallvisible 11 |
Definition at line 107 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relam 6 |
Definition at line 102 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relchecks 19 |
Definition at line 115 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relfilenode 7 |
Definition at line 103 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relfrozenxid 25 |
Definition at line 121 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relhasindex 14 |
Definition at line 110 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relhasoids 20 |
Definition at line 116 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relhaspkey 21 |
Definition at line 117 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relhasrules 22 |
Definition at line 118 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relhassubclass 24 |
Definition at line 120 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relhastriggers 23 |
Definition at line 119 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relisshared 15 |
Definition at line 111 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relkind 17 |
Definition at line 113 of file pg_class.h.
Referenced by do_autovacuum(), getRelationsInNamespace(), and InsertPgClassTuple().
#define Anum_pg_class_relminmxid 26 |
Definition at line 122 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relname 1 |
Definition at line 97 of file pg_class.h.
Referenced by InsertPgClassTuple(), and regclassin().
#define Anum_pg_class_relnamespace 2 |
Definition at line 98 of file pg_class.h.
Referenced by getRelationsInNamespace(), and InsertPgClassTuple().
#define Anum_pg_class_relnatts 18 |
Definition at line 114 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_reloftype 4 |
Definition at line 100 of file pg_class.h.
Referenced by find_typed_table_dependencies(), and InsertPgClassTuple().
#define Anum_pg_class_reloptions 28 |
Definition at line 124 of file pg_class.h.
Referenced by ATExecSetRelOptions(), extractRelOptions(), flatten_reloptions(), generateClonedIndexStmt(), InsertPgClassTuple(), and make_new_heap().
#define Anum_pg_class_relowner 5 |
Definition at line 101 of file pg_class.h.
Referenced by ATExecChangeOwner(), and InsertPgClassTuple().
#define Anum_pg_class_relpages 9 |
Definition at line 105 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_relpersistence 16 |
Definition at line 112 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_reltablespace 8 |
Definition at line 104 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_reltoastidxid 13 |
Definition at line 109 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_reltoastrelid 12 |
Definition at line 108 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_reltuples 10 |
Definition at line 106 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define Anum_pg_class_reltype 3 |
Definition at line 99 of file pg_class.h.
Referenced by InsertPgClassTuple().
#define CLASS_TUPLE_SIZE (offsetof(FormData_pg_class,relminmxid) + sizeof(TransactionId)) |
Definition at line 81 of file pg_class.h.
Referenced by AllocateRelationDesc(), formrdesc(), RelationBuildLocalRelation(), RelationCacheInitializePhase3(), RelationClearRelation(), RelationReloadIndexInfo(), and write_relcache_init_file().
#define Natts_pg_class 28 |
Definition at line 96 of file pg_class.h.
Referenced by GetPgClassDescriptor(), and RelationCacheInitializePhase3().
#define RelationRelation_Rowtype_Id 83 |
Definition at line 30 of file pg_class.h.
Referenced by RelationCacheInitializePhase3().
#define RelationRelationId 1259 |
Definition at line 29 of file pg_class.h.
Referenced by AcquireDeletionLock(), AlterRelationNamespaceInternal(), AlterSeqNamespaces(), AlterSequence(), AlterTableNamespace(), AlterTableNamespaceInternal(), AlterTypeNamespaceInternal(), ATExecAddColumn(), ATExecAddOf(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecChangeOwner(), ATExecDropColumn(), ATExecDropInherit(), ATExecDropNotNull(), ATExecDropOf(), ATExecSetNotNull(), ATExecSetOptions(), ATExecSetRelOptions(), ATExecSetStatistics(), ATExecSetStorage(), ATExecSetTableSpace(), CacheInvalidateHeapTuple(), change_owner_recurse_to_sequences(), CheckSetNamespace(), create_toast_table(), CreateTrigger(), DefineIndex(), DefineQueryRewrite(), DeleteRelationTuple(), do_autovacuum(), drop_parent_dependency(), exec_object_restorecon(), ExecAlterExtensionContentsStmt(), ExecGrant_Attribute(), ExecGrant_Relation(), find_composite_type_dependencies(), find_typed_table_dependencies(), finish_heap_swap(), get_constraint_index(), get_index_constraint(), get_object_address(), get_rel_oids(), get_rels_with_domain(), getObjectClass(), getOwnedSequences(), getRelationsInNamespace(), heap_create_with_catalog(), index_constraint_create(), index_create(), index_update_stats(), markSequenceUnowned(), pg_extension_config_dump(), pg_get_serial_sequence(), pgstat_vacuum_stat(), recordDependencyOnSingleRelExpr(), regclassin(), ReindexDatabase(), RelationBuildLocalRelation(), RelationCacheInitializePhase3(), RelationCacheInvalidate(), RelationSetNewRelfilenode(), ReleaseDeletionLock(), RemoveConstraintById(), RemoveRoleFromObjectACL(), renameatt_internal(), RenameRelationInternal(), ScanPgRelation(), sepgsql_attribute_post_create(), sepgsql_object_access(), sepgsql_object_relabel(), sepgsql_relation_post_create(), sepgsql_relation_setattr(), sepgsql_restorecon(), sequenceIsOwned(), SetRelationHasSubclass(), SetRelationNumChecks(), SetRelationRuleStatus(), shdepReassignOwned(), swap_relation_files(), transformTableLikeClause(), vac_update_datfrozenxid(), and vac_update_relstats().
#define RELKIND_COMPOSITE_TYPE 'c' |
Definition at line 154 of file pg_class.h.
Referenced by AddNewAttributeTuples(), AlterTypeOwner(), ATExecAddColumn(), ATExecChangeOwner(), ATPrepAddColumn(), ATPrepAlterColumnType(), ATPrepDropColumn(), ATSimplePermissions(), ATTypedTableRecursion(), build_row_from_class(), CheckAttributeNamesTypes(), CommentObject(), DefineCompositeType(), ExecGrant_Relation(), ExecSecLabelStmt(), find_composite_type_dependencies(), GenerateTypeDependencies(), get_raw_page_internal(), getRelationDescription(), getRelationTypeDescription(), getTables(), heap_create(), heap_create_with_catalog(), heap_drop_with_catalog(), heap_open(), heap_openrv(), heap_openrv_extended(), pgstat_relation(), plpgsql_parse_cwordtype(), RangeVarCallbackForAlterRelation(), renameatt_check(), renameatt_internal(), RenameType(), selectDumpableType(), transformRangeFunction(), and transformTableLikeClause().
#define RELKIND_FOREIGN_TABLE 'f' |
Definition at line 155 of file pg_class.h.
Referenced by analyze_rel(), ATExecAddColumn(), ATExecChangeOwner(), ATPrepAlterColumnType(), ATPrepSetStatistics(), ATRewriteTables(), ATSimplePermissions(), BeginCopyTo(), build_row_from_class(), CheckValidResultRel(), CheckValidRowMarkRel(), CommentObject(), CopyFrom(), DefineIndex(), DefineRelation(), dumpTableSchema(), estimate_rel_size(), ExecInitModifyTable(), ExecModifyTable(), ExecSecLabelStmt(), expand_table_name_patterns(), extractRelOptions(), find_composite_type_dependencies(), get_raw_page_internal(), get_relation_by_qualified_name(), get_relation_info(), getRelationDescription(), getRelationTypeDescription(), getTables(), heap_create(), heap_create_with_catalog(), heap_drop_with_catalog(), InitResultRelInfo(), make_modifytable(), makeTableDataInfo(), objectsInSchemaToOids(), pgstat_relation(), plpgsql_parse_cwordtype(), preprocess_rowmarks(), ProcessUtilitySlow(), RangeVarCallbackForAlterRelation(), renameatt_check(), rewriteTargetListUD(), set_rel_pathlist(), set_rel_size(), and transformTableLikeClause().
#define RELKIND_INDEX 'i' |
Definition at line 150 of file pg_class.h.
Referenced by AddNewRelationTuple(), ATExecAlterColumnType(), ATExecChangeOwner(), ATExecSetRelOptions(), ATPrepSetStatistics(), ATSimplePermissions(), CheckTableNotInUse(), doDeletion(), estimate_rel_size(), ExecGrant_Relation(), extractRelOptions(), get_relation_by_qualified_name(), getRelationDescription(), getRelationTypeDescription(), heap_open(), heap_openrv(), heap_openrv_extended(), index_create(), index_open(), index_update_stats(), load_relcache_init_file(), pg_relation_filenode(), pg_relation_filepath(), pgstat_initstats(), pgstat_relation(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForDropRelation(), RangeVarCallbackForReindexIndex(), RelationClearRelation(), RelationIdGetRelation(), RelationParseRelOptions(), RelationReloadIndexInfo(), RelationSetNewRelfilenode(), renameatt_check(), RenameRelationInternal(), sepgsql_relation_drop(), sepgsql_relation_post_create(), sepgsql_relation_setattr(), swap_relation_files(), and write_relcache_init_file().
#define RELKIND_MATVIEW 'm' |
Definition at line 156 of file pg_class.h.
Referenced by AddNewRelationTuple(), AlterTableNamespaceInternal(), analyze_rel(), ATExecChangeOwner(), ATExecSetRelOptions(), ATPrepSetStatistics(), ATRewriteCatalogs(), ATSimplePermissions(), BeginCopyTo(), BootstrapToastTable(), build_row_from_class(), buildMatViewRefreshDependencies(), CheckValidResultRel(), CheckValidRowMarkRel(), cluster_rel(), CommentObject(), copy_heap_data(), CopyFrom(), DefineIndex(), DefineQueryRewrite(), do_autovacuum(), dumpTableSchema(), estimate_rel_size(), ExecRefreshMatView(), ExecSecLabelStmt(), expand_table_name_patterns(), extract_autovac_opts(), extractRelOptions(), find_composite_type_dependencies(), fireRIRrules(), flagInhAttrs(), flagInhTables(), get_rel_oids(), get_relation_by_qualified_name(), get_rels_with_domain(), getIndexes(), getRelationDescription(), getRelationTypeDescription(), getRules(), getTables(), heap_create_with_catalog(), heap_delete(), heap_is_matview_init_state(), heap_prepare_insert(), heap_reloptions(), heap_update(), intorel_startup(), lazy_vacuum_rel(), load_relcache_init_file(), makeTableDataInfo(), objectsInSchemaToOids(), pg_relation_filenode(), pg_relation_filepath(), pgstat_initstats(), pgstat_relation(), plpgsql_parse_cwordtype(), pltcl_init_load_unknown(), RangeVarCallbackForAlterRelation(), RangeVarCallbackOwnsTable(), ReindexDatabase(), RelationBuildDesc(), RelationBuildLocalRelation(), RelationClearRelation(), RelationParseRelOptions(), renameatt_check(), rewriteTargetListUD(), SetMatViewToPopulated(), toast_delete(), toast_insert_or_update(), transformRuleStmt(), transformTableLikeClause(), vac_update_datfrozenxid(), and vacuum_rel().
#define RELKIND_RELATION 'r' |
Definition at line 149 of file pg_class.h.
Referenced by AddNewRelationTuple(), AlterTableNamespaceInternal(), analyze_rel(), ATAddForeignKeyConstraint(), ATExecChangeOwner(), ATExecSetRelOptions(), ATPrepAlterColumnType(), ATPrepSetStatistics(), ATRewriteCatalogs(), ATSimplePermissions(), ATSimpleRecursion(), BeginCopyTo(), BootstrapToastTable(), build_row_from_class(), check_relation_privileges(), CheckValidResultRel(), CheckValidRowMarkRel(), CommentObject(), CopyFrom(), CreateTrigger(), DefineIndex(), DefineQueryRewrite(), DefineRelation(), do_autovacuum(), dumpTableSchema(), estimate_rel_size(), exec_object_restorecon(), ExecInitModifyTable(), ExecModifyTable(), ExecSecLabelStmt(), expand_table_name_patterns(), extract_autovac_opts(), extractRelOptions(), find_composite_type_dependencies(), get_rel_oids(), get_relation_by_qualified_name(), get_rels_with_domain(), getIndexes(), getRelationDescription(), getRelationTypeDescription(), getTables(), heap_create_with_catalog(), heap_delete(), heap_prepare_insert(), heap_reloptions(), heap_update(), MergeAttributes(), objectsInSchemaToOids(), pg_relation_filenode(), pg_relation_filepath(), pgstat_initstats(), pgstat_relation(), plpgsql_parse_cwordtype(), pltcl_init_load_unknown(), process_owned_by(), ProcessUtilitySlow(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForLockTable(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackOwnsTable(), ReindexDatabase(), relation_is_updatable(), RelationParseRelOptions(), RemoveTriggerById(), renameatt_check(), rewriteTargetListUD(), sepgsql_attribute_drop(), sepgsql_attribute_post_create(), sepgsql_attribute_relabel(), sepgsql_attribute_setattr(), sepgsql_relation_drop(), sepgsql_relation_post_create(), sepgsql_relation_relabel(), sepgsql_relation_setattr(), toast_delete(), toast_insert_or_update(), transformIndexConstraint(), transformTableLikeClause(), truncate_check_rel(), vac_update_datfrozenxid(), vacuum_rel(), and view_is_auto_updatable().
#define RELKIND_SEQUENCE 'S' |
Definition at line 151 of file pg_class.h.
Referenced by AddNewRelationTuple(), AlterSeqNamespaces(), AlterTableNamespace(), ATExecAlterColumnType(), ATExecChangeOwner(), BeginCopyTo(), build_row_from_class(), change_owner_recurse_to_sequences(), check_relation_privileges(), CheckValidResultRel(), CheckValidRowMarkRel(), CopyFrom(), DefineSequence(), dumpDumpableObject(), dumpTable(), estimate_rel_size(), exec_object_restorecon(), ExecGrant_Relation(), expand_table_name_patterns(), flagInhAttrs(), flagInhTables(), get_relation_by_qualified_name(), getRelationDescription(), getRelationTypeDescription(), getTableAttrs(), getTables(), guessConstraintInheritance(), has_sequence_privilege_id(), has_sequence_privilege_id_id(), has_sequence_privilege_id_name(), has_sequence_privilege_name(), has_sequence_privilege_name_id(), has_sequence_privilege_name_name(), heap_create(), heap_create_with_catalog(), init_sequence(), objectsInSchemaToOids(), pg_class_aclmask(), pg_relation_filenode(), pg_relation_filepath(), pgstat_initstats(), pgstat_relation(), plpgsql_parse_cwordtype(), RangeVarCallbackForAlterRelation(), RelationSetNewRelfilenode(), sepgsql_relation_drop(), sepgsql_relation_post_create(), sepgsql_relation_relabel(), and sepgsql_relation_setattr().
#define RELKIND_TOASTVALUE 't' |
Definition at line 152 of file pg_class.h.
Referenced by AddNewRelationTuple(), ATExecChangeOwner(), ATExecSetRelOptions(), check_relation_privileges(), CheckValidResultRel(), CheckValidRowMarkRel(), create_toast_table(), do_autovacuum(), estimate_rel_size(), extract_autovac_opts(), extractRelOptions(), getRelationDescription(), getRelationTypeDescription(), heap_create_with_catalog(), heap_reloptions(), index_build(), index_update_stats(), intorel_startup(), pg_relation_filenode(), pg_relation_filepath(), pgstat_initstats(), pgstat_relation(), ProcessUtilitySlow(), RangeVarCallbackOwnsTable(), raw_heap_insert(), RelationParseRelOptions(), table_recheck_autovac(), vac_update_datfrozenxid(), and vacuum_rel().
#define RELKIND_VIEW 'v' |
Definition at line 153 of file pg_class.h.
Referenced by AddNewAttributeTuples(), ATExecAddColumn(), ATExecChangeOwner(), ATExecSetRelOptions(), ATSimplePermissions(), BeginCopyTo(), build_row_from_class(), check_relation_privileges(), CheckAttributeNamesTypes(), CheckValidResultRel(), CheckValidRowMarkRel(), CommentObject(), CopyFrom(), CreateTrigger(), currtid_byrelname(), currtid_byreloid(), DefineQueryRewrite(), DefineVirtualRelation(), dumpTableSchema(), exec_object_restorecon(), ExecSecLabelStmt(), expand_all_col_privileges(), expand_table_name_patterns(), extractRelOptions(), flagInhAttrs(), flagInhTables(), get_raw_page_internal(), get_relation_by_qualified_name(), get_view_query(), getRelationDescription(), getRelationTypeDescription(), getRules(), getTableAttrs(), getTables(), guessConstraintInheritance(), heap_create(), heap_create_with_catalog(), heap_drop_with_catalog(), heap_reloptions(), makeTableDataInfo(), objectsInSchemaToOids(), pg_class_aclmask(), pgstat_relation(), plpgsql_parse_cwordtype(), pltcl_init_load_unknown(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), relation_is_updatable(), RelationParseRelOptions(), RemoveTriggerById(), renameatt_check(), RewriteQuery(), rewriteTargetListIU(), sepgsql_relation_drop(), sepgsql_relation_post_create(), sepgsql_relation_relabel(), sepgsql_relation_setattr(), transformTableLikeClause(), and view_is_auto_updatable().
#define RELPERSISTENCE_PERMANENT 'p' |
Definition at line 158 of file pg_class.h.
Referenced by ATAddForeignKeyConstraint(), BufferAlloc(), copy_relation_data(), DefineView(), GetNewRelFileNode(), pg_relation_filepath(), RangeVarAdjustRelationPersistence(), ReadBufferWithoutRelcache(), RelationBuildDesc(), RelationBuildLocalRelation(), and RelationCreateStorage().
#define RELPERSISTENCE_TEMP 't' |
Definition at line 160 of file pg_class.h.
Referenced by ATAddForeignKeyConstraint(), ATExecAddInherit(), DefineRelation(), do_autovacuum(), GetDefaultTablespace(), GetNewRelFileNode(), gistGetFakeLSN(), heap_create_with_catalog(), isQueryUsingTempRelation_walker(), MergeAttributes(), pg_relation_filepath(), RangeVarAdjustRelationPersistence(), RangeVarGetCreationNamespace(), RangeVarGetRelidExtended(), ReindexDatabase(), RelationBuildDesc(), RelationBuildLocalRelation(), RelationCreateStorage(), and transformCreateStmt().
#define RELPERSISTENCE_UNLOGGED 'u' |
Definition at line 159 of file pg_class.h.
Referenced by ATAddForeignKeyConstraint(), DefineSequence(), DefineView(), dumpTableSchema(), ExecuteTruncate(), GetNewRelFileNode(), gistGetFakeLSN(), heap_create_with_catalog(), index_build(), makeTableDataInfo(), pg_relation_filepath(), RelationBuildDesc(), RelationBuildLocalRelation(), and RelationCreateStorage().
typedef FormData_pg_class* Form_pg_class |
Definition at line 89 of file pg_class.h.
CATALOG | ( | pg_class | , | |
1259 | ||||
) |
Definition at line 32 of file pg_class.h.
{ NameData relname; /* class name */ Oid relnamespace; /* OID of namespace containing this class */ Oid reltype; /* OID of entry in pg_type for table's * implicit row type */ Oid reloftype; /* OID of entry in pg_type for underlying * composite type */ Oid relowner; /* class owner */ Oid relam; /* index access method; 0 if not an index */ Oid relfilenode; /* identifier of physical storage file */ /* relfilenode == 0 means it is a "mapped" relation, see relmapper.c */ Oid reltablespace; /* identifier of table space for relation */ int32 relpages; /* # of blocks (not always up-to-date) */ float4 reltuples; /* # of tuples (not always up-to-date) */ int32 relallvisible; /* # of all-visible blocks (not always * up-to-date) */ Oid reltoastrelid; /* OID of toast table; 0 if none */ Oid reltoastidxid; /* if toast table, OID of chunk_id index */ bool relhasindex; /* T if has (or has had) any indexes */ bool relisshared; /* T if shared across databases */ char relpersistence; /* see RELPERSISTENCE_xxx constants below */ char relkind; /* see RELKIND_xxx constants below */ int16 relnatts; /* number of user attributes */ /* * Class pg_attribute must contain exactly "relnatts" user attributes * (with attnums ranging from 1 to relnatts) for this class. It may also * contain entries with negative attnums for system attributes. */ int16 relchecks; /* # of CHECK constraints for class */ bool relhasoids; /* T if we generate OIDs for rows of rel */ bool relhaspkey; /* has (or has had) PRIMARY KEY index */ bool relhasrules; /* has (or has had) any rules */ bool relhastriggers; /* has (or has had) any TRIGGERs */ bool relhassubclass; /* has (or has had) derived classes */ TransactionId relfrozenxid; /* all Xids < this are frozen in this rel */ TransactionId relminmxid; /* all multixacts in this rel are >= this. * this is really a MultiXactId */ #ifdef CATALOG_VARLEN /* variable-length fields start here */ /* NOTE: These fields are not present in a relcache entry's rd_rel field. */ aclitem relacl[1]; /* access permissions */ text reloptions[1]; /* access-method-specific options */ #endif } FormData_pg_class;
DATA | ( | insert | OID = 1247(pg_typePGNSP 71 0 PGUID 0 0 0 0 0 0 0 0 f f p r 30 0 t f f f f 3 1 _null_ _null_) |
) |
DESCR | ( | "" | ) |
Definition at line 78 of file pg_class.h.