PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | RawColumnDefault |
struct | CookedConstraint |
Macros | |
#define | CHKATYPE_ANYARRAY 0x01 /* allow ANYARRAY */ |
#define | CHKATYPE_ANYRECORD 0x02 /* allow RECORD and RECORD[] */ |
#define | CHKATYPE_IS_PARTKEY 0x04 /* attname is part key # not column */ |
Typedefs | |
typedef struct RawColumnDefault | RawColumnDefault |
typedef struct CookedConstraint | CookedConstraint |
Functions | |
Relation | heap_create (const char *relname, Oid relnamespace, Oid reltablespace, Oid relid, RelFileNumber relfilenumber, Oid accessmtd, TupleDesc tupDesc, char relkind, char relpersistence, bool shared_relation, bool mapped_relation, bool allow_system_table_mods, TransactionId *relfrozenxid, MultiXactId *relminmxid, bool create_storage) |
Oid | heap_create_with_catalog (const char *relname, Oid relnamespace, Oid reltablespace, Oid relid, Oid reltypeid, Oid reloftypeid, Oid ownerid, Oid accessmtd, TupleDesc tupdesc, List *cooked_constraints, char relkind, char relpersistence, bool shared_relation, bool mapped_relation, OnCommitAction oncommit, Datum reloptions, bool use_user_acl, bool allow_system_table_mods, bool is_internal, Oid relrewrite, ObjectAddress *typaddress) |
void | heap_drop_with_catalog (Oid relid) |
void | heap_truncate (List *relids) |
void | heap_truncate_one_rel (Relation rel) |
void | heap_truncate_check_FKs (List *relations, bool tempTables) |
List * | heap_truncate_find_FKs (List *relationIds) |
void | InsertPgAttributeTuples (Relation pg_attribute_rel, TupleDesc tupdesc, Oid new_rel_oid, const Datum *attoptions, CatalogIndexState indstate) |
void | InsertPgClassTuple (Relation pg_class_desc, Relation new_rel_desc, Oid new_rel_oid, Datum relacl, Datum reloptions) |
List * | AddRelationNewConstraints (Relation rel, List *newColDefaults, List *newConstraints, bool allow_merge, bool is_local, bool is_internal, const char *queryString) |
List * | AddRelationNotNullConstraints (Relation rel, List *constraints, List *additional_notnulls) |
void | RelationClearMissing (Relation rel) |
void | SetAttrMissing (Oid relid, char *attname, char *value) |
Node * | cookDefault (ParseState *pstate, Node *raw_default, Oid atttypid, int32 atttypmod, const char *attname, char attgenerated) |
void | DeleteRelationTuple (Oid relid) |
void | DeleteAttributeTuples (Oid relid) |
void | DeleteSystemAttributeTuples (Oid relid) |
void | RemoveAttributeById (Oid relid, AttrNumber attnum) |
void | CopyStatistics (Oid fromrelid, Oid torelid) |
void | RemoveStatistics (Oid relid, AttrNumber attnum) |
const FormData_pg_attribute * | SystemAttributeDefinition (AttrNumber attno) |
const FormData_pg_attribute * | SystemAttributeByName (const char *attname) |
void | CheckAttributeNamesTypes (TupleDesc tupdesc, char relkind, int flags) |
void | CheckAttributeType (const char *attname, Oid atttypid, Oid attcollation, List *containing_rowtypes, int flags) |
void | StorePartitionKey (Relation rel, char strategy, int16 partnatts, AttrNumber *partattrs, List *partexprs, Oid *partopclass, Oid *partcollation) |
void | RemovePartitionKeyByRelId (Oid relid) |
void | StorePartitionBound (Relation rel, Relation parent, PartitionBoundSpec *bound) |
#define CHKATYPE_ANYRECORD 0x02 /* allow RECORD and RECORD[] */ |
#define CHKATYPE_IS_PARTKEY 0x04 /* attname is part key # not column */ |
typedef struct CookedConstraint CookedConstraint |
typedef struct RawColumnDefault RawColumnDefault |
List* AddRelationNewConstraints | ( | Relation | rel, |
List * | newColDefaults, | ||
List * | newConstraints, | ||
bool | allow_merge, | ||
bool | is_local, | ||
bool | is_internal, | ||
const char * | queryString | ||
) |
Definition at line 2290 of file heap.c.
References AccessShareLock, addNSItemToQuery(), addRangeTableEntryForRelation(), AdjustNotNullInheritance1(), Assert(), RawColumnDefault::attnum, CookedConstraint::attnum, castNode, ChooseConstraintName(), Constraint::conname, CookedConstraint::conoid, TupleDescData::constr, CONSTR_CHECK, CONSTR_DEFAULT, CONSTR_NOTNULL, CONSTRAINT_RELATION, ConstraintNameIsUsed(), contain_volatile_functions(), CookedConstraint::contype, Constraint::contype, cookConstraint(), cookDefault(), Constraint::cooked_expr, elog(), ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg(), ERROR, CookedConstraint::expr, RawColumnDefault::generated, get_attname(), get_attnum(), CookedConstraint::inhcount, Constraint::inhcount, Constraint::initially_valid, InvalidAttrNumber, CookedConstraint::is_local, CookedConstraint::is_no_inherit, Constraint::is_no_inherit, IsA, Constraint::keys, lappend(), lfirst, linitial, list_length(), list_union(), make_parsestate(), MergeWithExistingConstraint(), RawColumnDefault::missingMode, CookedConstraint::name, NameStr, NIL, TupleConstr::num_check, ParseState::p_sourcetext, palloc(), pull_var_clause(), RawColumnDefault::raw_default, Constraint::raw_expr, RelationData::rd_att, RelationGetDescr, RelationGetNamespace, RelationGetRelationName, RelationGetRelid, SetRelationNumChecks(), CookedConstraint::skip_validation, Constraint::skip_validation, StoreAttrDefault(), StoreRelCheck(), StoreRelNotNull(), stringToNode(), strVal, and TupleDescAttr.
Referenced by ATAddCheckNNConstraint(), ATExecAddColumn(), ATExecColumnDefault(), ATExecSetNotNull(), and DefineRelation().
List* AddRelationNotNullConstraints | ( | Relation | rel, |
List * | constraints, | ||
List * | additional_notnulls | ||
) |
Definition at line 2785 of file heap.c.
References Assert(), CookedConstraint::attnum, attnum, ChooseConstraintName(), Constraint::conname, CONSTR_NOTNULL, CookedConstraint::contype, Constraint::contype, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errdetail(), errmsg(), ERROR, foreach_delete_current, get_attname(), get_attnum(), CookedConstraint::inhcount, CookedConstraint::is_local, CookedConstraint::is_no_inherit, Constraint::is_no_inherit, Constraint::keys, lappend(), lappend_int(), lfirst, lfirst_node, linitial, list_cookedconstr_attnum_cmp(), list_delete_nth_cell(), list_length(), list_nth(), list_sort(), CookedConstraint::name, NIL, RelationGetNamespace, RelationGetRelationName, RelationGetRelid, StoreRelNotNull(), and strVal.
Referenced by DefineRelation().
void CheckAttributeNamesTypes | ( | TupleDesc | tupdesc, |
char | relkind, | ||
int | flags | ||
) |
Definition at line 455 of file heap.c.
References attname, CheckAttributeType(), ereport, errcode(), errmsg(), ERROR, i, j, MaxHeapAttributeNumber, NameStr, TupleDescData::natts, NIL, SystemAttributeByName(), and TupleDescAttr.
Referenced by addRangeTableEntryForFunction(), and heap_create_with_catalog().
void CheckAttributeType | ( | const char * | attname, |
Oid | atttypid, | ||
Oid | attcollation, | ||
List * | containing_rowtypes, | ||
int | flags | ||
) |
Definition at line 547 of file heap.c.
References AccessShareLock, attname, CHKATYPE_ANYARRAY, CHKATYPE_ANYRECORD, CHKATYPE_IS_PARTKEY, ereport, errcode(), errhint(), errmsg(), ERROR, format_type_be(), get_element_type(), get_range_collation(), get_range_subtype(), get_typ_typrelid(), get_typtype(), getBaseType(), i, lappend_oid(), list_delete_last(), list_member_oid(), NameStr, TupleDescData::natts, OidIsValid, relation_close(), relation_open(), RelationGetDescr, TupleDescAttr, and type_is_collatable().
Referenced by ATExecAddColumn(), ATPrepAlterColumnType(), CheckAttributeNamesTypes(), ComputePartitionAttrs(), and ConstructTupleDescriptor().
Node* cookDefault | ( | ParseState * | pstate, |
Node * | raw_default, | ||
Oid | atttypid, | ||
int32 | atttypmod, | ||
const char * | attname, | ||
char | attgenerated | ||
) |
Definition at line 3072 of file heap.c.
References Assert(), assign_expr_collations(), attname, check_nested_generated(), COERCE_IMPLICIT_CAST, coerce_to_target_type(), COERCION_ASSIGNMENT, contain_mutable_functions(), contain_var_clause(), ereport, errcode(), errhint(), errmsg(), ERROR, EXPR_KIND_COLUMN_DEFAULT, EXPR_KIND_GENERATED_COLUMN, exprType(), format_type_be(), OidIsValid, and transformExpr().
Referenced by AddRelationNewConstraints(), AlterDomainDefault(), and DefineDomain().
Definition at line 3185 of file heap.c.
References BTEqualStrategyNumber, CatalogCloseIndexes(), CatalogOpenIndexes(), CatalogTupleInsertWithInfo(), GETSTRUCT, heap_copytuple(), heap_freetuple(), HeapTupleIsValid, sort-test::key, ObjectIdGetDatum(), RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by index_concurrently_swap().
void DeleteAttributeTuples | ( | Oid | relid | ) |
Definition at line 1565 of file heap.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), sort-test::key, ObjectIdGetDatum(), RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by heap_drop_with_catalog(), and index_drop().
void DeleteRelationTuple | ( | Oid | relid | ) |
Definition at line 1536 of file heap.c.
References CatalogTupleDelete(), elog(), ERROR, HeapTupleIsValid, ObjectIdGetDatum(), ReleaseSysCache(), RELOID, RowExclusiveLock, SearchSysCache1(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by heap_drop_with_catalog(), and index_drop().
void DeleteSystemAttributeTuples | ( | Oid | relid | ) |
Definition at line 1602 of file heap.c.
References BTEqualStrategyNumber, BTLessEqualStrategyNumber, CatalogTupleDelete(), Int16GetDatum(), sort-test::key, ObjectIdGetDatum(), RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Relation heap_create | ( | const char * | relname, |
Oid | relnamespace, | ||
Oid | reltablespace, | ||
Oid | relid, | ||
RelFileNumber | relfilenumber, | ||
Oid | accessmtd, | ||
TupleDesc | tupDesc, | ||
char | relkind, | ||
char | relpersistence, | ||
bool | shared_relation, | ||
bool | mapped_relation, | ||
bool | allow_system_table_mods, | ||
TransactionId * | relfrozenxid, | ||
MultiXactId * | relminmxid, | ||
bool | create_storage | ||
) |
Definition at line 288 of file heap.c.
References Assert(), ereport, errcode(), errdetail(), errmsg(), ERROR, get_namespace_name(), InvalidMultiXactId, InvalidOid, InvalidTransactionId, IsCatalogNamespace(), IsNormalProcessingMode, IsToastNamespace(), MyDatabaseTableSpace, OidIsValid, pgstat_create_relation(), RelationData::rd_locator, RelationData::rd_rel, recordDependencyOnTablespace(), RelationBuildLocalRelation(), RelationCreateStorage(), RelFileNumberIsValid, relname, and table_relation_set_new_filelocator().
Referenced by heap_create_with_catalog(), and index_create().
Oid heap_create_with_catalog | ( | const char * | relname, |
Oid | relnamespace, | ||
Oid | reltablespace, | ||
Oid | relid, | ||
Oid | reltypeid, | ||
Oid | reloftypeid, | ||
Oid | ownerid, | ||
Oid | accessmtd, | ||
TupleDesc | tupdesc, | ||
List * | cooked_constraints, | ||
char | relkind, | ||
char | relpersistence, | ||
bool | shared_relation, | ||
bool | mapped_relation, | ||
OnCommitAction | oncommit, | ||
Datum | reloptions, | ||
bool | use_user_acl, | ||
bool | allow_system_table_mods, | ||
bool | is_internal, | ||
Oid | relrewrite, | ||
ObjectAddress * | typaddress | ||
) |
Definition at line 1091 of file heap.c.
References add_exact_object_address(), AddNewAttributeTuples(), AddNewRelationTuple(), AddNewRelationType(), Assert(), AssignTypeArrayOid(), binary_upgrade_next_heap_pg_class_oid, binary_upgrade_next_heap_pg_class_relfilenumber, binary_upgrade_next_toast_pg_class_oid, binary_upgrade_next_toast_pg_class_relfilenumber, CheckAttributeNamesTypes(), CHKATYPE_ANYARRAY, CStringGetDatum(), DEFAULT_TYPDELIM, DEPENDENCY_NORMAL, elog(), ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errhint(), errmsg(), ERROR, free_object_addresses(), get_relname_relid(), get_user_default_acl(), GetNewRelFileNumber(), GetSysCacheOid2, heap_create(), InvalidOid, InvalidRelFileNumber, InvokeObjectPostCreateHookArg, IsBinaryUpgrade, IsBootstrapProcessingMode, IsNormalProcessingMode, makeArrayTypeName(), moveArrayTypeName(), new_object_addresses(), NoLock, OBJECT_SEQUENCE, OBJECT_TABLE, ObjectAddressSet, ObjectAddress::objectId, ObjectIdGetDatum(), OidIsValid, ONCOMMIT_NOOP, pfree(), PointerGetDatum(), RelationData::rd_att, RelationData::rd_rel, record_object_address_dependencies(), recordDependencyOnCurrentExtension(), recordDependencyOnNewAcl(), recordDependencyOnOwner(), register_on_commit_action(), RelationGetRelid, RelFileNumberIsValid, relname, RowExclusiveLock, StoreConstraints(), table_close(), table_open(), TypeCreate(), and TYPENAMENSP.
Referenced by create_toast_table(), DefineRelation(), and make_new_heap().
void heap_drop_with_catalog | ( | Oid | relid | ) |
Definition at line 1742 of file heap.c.
References AccessExclusiveLock, CacheInvalidateRelcacheByRelid(), CatalogTupleDelete(), CheckTableForSerializableConflictIn(), CheckTableNotInUse(), DeleteAttributeTuples(), DeleteRelationTuple(), elog(), ERROR, FOREIGNTABLEREL, get_default_partition_oid(), get_partition_parent(), GETSTRUCT, HeapTupleIsValid, InvalidOid, LockRelationOid(), NoLock, ObjectIdGetDatum(), OidIsValid, pgstat_drop_relation(), RelationData::rd_rel, relation_close(), relation_open(), RelationDropStorage(), RelationForgetRelation(), RelationRemoveInheritance(), ReleaseSysCache(), RELOID, remove_on_commit_action(), RemovePartitionKeyByRelId(), RemoveStatistics(), RemoveSubscriptionRel(), RowExclusiveLock, SearchSysCache1(), HeapTupleData::t_self, table_close(), table_open(), and update_default_partition_oid().
Referenced by doDeletion().
void heap_truncate | ( | List * | relids | ) |
Definition at line 3333 of file heap.c.
References AccessExclusiveLock, heap_truncate_check_FKs(), heap_truncate_one_rel(), lappend(), lfirst, lfirst_oid, NIL, NoLock, table_close(), and table_open().
Referenced by PreCommit_on_commit_actions().
Definition at line 3418 of file heap.c.
References ereport, errcode(), errdetail(), errhint(), errmsg(), ERROR, get_rel_name(), heap_truncate_find_FKs(), lappend_oid(), lfirst, lfirst_oid, list_make1_oid, list_member_oid(), NIL, RelationData::rd_rel, RelationGetRelid, and relname.
Referenced by ExecuteTruncateGuts(), and heap_truncate().
Definition at line 3513 of file heap.c.
References AccessShareLock, BTEqualStrategyNumber, GETSTRUCT, HeapTupleIsValid, InvalidOid, sort-test::key, lappend_oid(), lfirst_oid, list_append_unique_oid(), list_copy(), list_deduplicate_oid(), list_free(), list_member_oid(), list_oid_cmp(), list_sort(), NIL, ObjectIdGetDatum(), OidIsValid, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by ExecuteTruncateGuts(), and heap_truncate_check_FKs().
void heap_truncate_one_rel | ( | Relation | rel | ) |
Definition at line 3374 of file heap.c.
References AccessExclusiveLock, NoLock, OidIsValid, RelationData::rd_rel, RelationTruncateIndexes(), table_close(), table_open(), and table_relation_nontransactional_truncate().
Referenced by ExecuteTruncateGuts(), and heap_truncate().
void InsertPgAttributeTuples | ( | Relation | pg_attribute_rel, |
TupleDesc | tupdesc, | ||
Oid | new_rel_oid, | ||
const Datum * | attoptions, | ||
CatalogIndexState | indstate | ||
) |
Definition at line 697 of file heap.c.
References BoolGetDatum(), CatalogCloseIndexes(), CatalogOpenIndexes(), CatalogTuplesMultiInsertWithInfo(), CharGetDatum(), ExecClearTuple(), ExecDropSingleTupleTableSlot(), ExecStoreVirtualTuple(), FormData_pg_attribute, i, Int16GetDatum(), Int32GetDatum(), InvalidOid, MakeSingleTupleTableSlot(), MAX_CATALOG_MULTI_INSERT_BYTES, Min, NameGetDatum(), TupleDescData::natts, ObjectIdGetDatum(), palloc(), pfree(), RelationGetDescr, TupleTableSlot::tts_isnull, TupleTableSlot::tts_values, TTSOpsHeapTuple, and TupleDescAttr.
Referenced by AddNewAttributeTuples(), AppendAttributeTuples(), and ATExecAddColumn().
void InsertPgClassTuple | ( | Relation | pg_class_desc, |
Relation | new_rel_desc, | ||
Oid | new_rel_oid, | ||
Datum | relacl, | ||
Datum | reloptions | ||
) |
Definition at line 882 of file heap.c.
References BoolGetDatum(), CatalogTupleInsert(), CharGetDatum(), Float4GetDatum(), heap_form_tuple(), heap_freetuple(), Int16GetDatum(), Int32GetDatum(), MultiXactIdGetDatum(), NameGetDatum(), ObjectIdGetDatum(), RelationData::rd_rel, RelationGetDescr, TransactionIdGetDatum(), and values.
Referenced by AddNewRelationTuple(), and index_create().
void RelationClearMissing | ( | Relation | rel | ) |
Definition at line 1922 of file heap.c.
References attnum, ATTNUM, BoolGetDatum(), CatalogTupleUpdate(), elog(), ERROR, GETSTRUCT, heap_freetuple(), heap_modify_tuple(), HeapTupleIsValid, Int16GetDatum(), ObjectIdGetDatum(), RelationGetDescr, RelationGetNumberOfAttributes, RelationGetRelid, ReleaseSysCache(), RowExclusiveLock, SearchSysCache2(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by ATExecAlterColumnType(), and finish_heap_swap().
void RemoveAttributeById | ( | Oid | relid, |
AttrNumber | attnum | ||
) |
Definition at line 1643 of file heap.c.
References AccessExclusiveLock, attnum, ATTNUM, BoolGetDatum(), CatalogTupleUpdate(), elog(), ERROR, GETSTRUCT, heap_modify_tuple(), HeapTupleIsValid, Int16GetDatum(), InvalidOid, NAMEDATALEN, namestrcpy(), NoLock, ObjectIdGetDatum(), relation_close(), relation_open(), RelationGetDescr, RemoveStatistics(), RowExclusiveLock, SearchSysCacheCopy2, snprintf, HeapTupleData::t_self, table_close(), and table_open().
Referenced by doDeletion().
void RemovePartitionKeyByRelId | ( | Oid | relid | ) |
Definition at line 3765 of file heap.c.
References CatalogTupleDelete(), elog(), ERROR, HeapTupleIsValid, ObjectIdGetDatum(), PARTRELID, ReleaseSysCache(), RowExclusiveLock, SearchSysCache1(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by heap_drop_with_catalog().
void RemoveStatistics | ( | Oid | relid, |
AttrNumber | attnum | ||
) |
Definition at line 3238 of file heap.c.
References attnum, BTEqualStrategyNumber, CatalogTupleDelete(), HeapTupleIsValid, Int16GetDatum(), sort-test::key, ObjectIdGetDatum(), RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by ATExecAlterColumnType(), heap_drop_with_catalog(), index_drop(), and RemoveAttributeById().
void SetAttrMissing | ( | Oid | relid, |
char * | attname, | ||
char * | value | ||
) |
Definition at line 1990 of file heap.c.
References AccessExclusiveLock, attname, BoolGetDatum(), CatalogTupleUpdate(), CStringGetDatum(), elog(), ERROR, GETSTRUCT, heap_modify_tuple(), HeapTupleIsValid, Int32GetDatum(), ObjectIdGetDatum(), OidFunctionCall3, RelationData::rd_rel, RelationGetDescr, ReleaseSysCache(), RowExclusiveLock, SearchSysCacheAttName(), HeapTupleData::t_self, table_close(), table_open(), and value.
Referenced by binary_upgrade_set_missing_value().
void StorePartitionBound | ( | Relation | rel, |
Relation | parent, | ||
PartitionBoundSpec * | bound | ||
) |
Definition at line 3796 of file heap.c.
References Assert(), CacheInvalidateRelcache(), CacheInvalidateRelcacheByRelid(), CatalogTupleUpdate(), CommandCounterIncrement(), CStringGetTextDatum, elog(), ERROR, get_default_oid_from_partdesc(), GETSTRUCT, heap_freetuple(), heap_modify_tuple(), HeapTupleIsValid, PartitionBoundSpec::is_default, nodeToString(), ObjectIdGetDatum(), OidIsValid, RelationGetDescr, RelationGetPartitionDesc(), RelationGetRelid, RELOID, RowExclusiveLock, SearchSysCacheCopy1, SysCacheGetAttr(), HeapTupleData::t_self, table_close(), table_open(), and update_default_partition_oid().
Referenced by ATExecAttachPartition(), and DefineRelation().
void StorePartitionKey | ( | Relation | rel, |
char | strategy, | ||
int16 | partnatts, | ||
AttrNumber * | partattrs, | ||
List * | partexprs, | ||
Oid * | partopclass, | ||
Oid * | partcollation | ||
) |
Definition at line 3640 of file heap.c.
References add_exact_object_address(), Assert(), buildint2vector(), buildoidvector(), CacheInvalidateRelcache(), CatalogTupleInsert(), CharGetDatum(), CStringGetTextDatum, DEPENDENCY_INTERNAL, DEPENDENCY_NORMAL, free_object_addresses(), heap_form_tuple(), i, Int16GetDatum(), InvalidOid, new_object_addresses(), nodeToString(), ObjectAddressSet, ObjectAddressSubSet, ObjectIdGetDatum(), OidIsValid, pfree(), PointerGetDatum(), RelationData::rd_rel, record_object_address_dependencies(), recordDependencyOn(), recordDependencyOnSingleRelExpr(), RelationGetDescr, RelationGetRelid, RowExclusiveLock, table_close(), table_open(), and values.
Referenced by DefineRelation().
const FormData_pg_attribute* SystemAttributeByName | ( | const char * | attname | ) |
Definition at line 251 of file heap.c.
References attname, FormData_pg_attribute, j, lengthof, NameStr, and SysAtt.
Referenced by CheckAttributeNamesTypes(), expanded_record_lookup_field(), specialAttNum(), SPI_fnumber(), and transformIndexConstraint().
const FormData_pg_attribute* SystemAttributeDefinition | ( | AttrNumber | attno | ) |
Definition at line 239 of file heap.c.
References elog(), ERROR, lengthof, and SysAtt.
Referenced by attnumAttName(), attnumTypeId(), build_index_tlist(), scanNSItemForColumn(), SPI_fname(), SPI_gettype(), SPI_gettypeid(), SPI_getvalue(), and transformIndexConstraint().