PostgreSQL Source Code
git master
|
#include "catalog/genbki.h"
#include "catalog/pg_inherits_d.h"
#include "nodes/pg_list.h"
#include "storage/lock.h"
Go to the source code of this file.
Macros | |
#define | InheritsRelidSeqnoIndexId 2680 |
#define | InheritsParentIndexId 2187 |
Typedefs | |
typedef FormData_pg_inherits * | Form_pg_inherits |
Functions | |
CATALOG (pg_inherits, 2611, InheritsRelationId) | |
DECLARE_UNIQUE_INDEX (pg_inherits_relid_seqno_index, 2680, on pg_inherits using btree(inhrelid oid_ops, inhseqno int4_ops)) | |
DECLARE_INDEX (pg_inherits_parent_index, 2187, on pg_inherits using btree(inhparent oid_ops)) | |
List * | find_inheritance_children (Oid parentrelId, LOCKMODE lockmode) |
List * | find_all_inheritors (Oid parentrelId, LOCKMODE lockmode, List **parents) |
bool | has_subclass (Oid relationId) |
bool | has_superclass (Oid relationId) |
bool | typeInheritsFrom (Oid subclassTypeId, Oid superclassTypeId) |
void | StoreSingleInheritance (Oid relationId, Oid parentOid, int32 seqNumber) |
bool | DeleteInheritsTuple (Oid inhrelid, Oid inhparent) |
Variables | |
FormData_pg_inherits | |
#define InheritsParentIndexId 2187 |
Definition at line 49 of file pg_inherits.h.
Referenced by ATExecAttachPartition(), find_inheritance_children(), and validatePartitionedIndex().
#define InheritsRelidSeqnoIndexId 2680 |
Definition at line 47 of file pg_inherits.h.
Referenced by ATExecAddOf(), ATExecAttachPartition(), CreateInheritance(), DeleteInheritsTuple(), get_partition_parent_worker(), has_superclass(), IndexSetParentIndex(), RelationRemoveInheritance(), and typeInheritsFrom().
typedef FormData_pg_inherits* Form_pg_inherits |
Definition at line 44 of file pg_inherits.h.
CATALOG | ( | pg_inherits | , |
2611 | , | ||
InheritsRelationId | |||
) |
Definition at line 32 of file pg_inherits.h.
DECLARE_INDEX | ( | pg_inherits_parent_index | , |
2187 | , | ||
on pg_inherits using | btreeinhparent oid_ops | ||
) |
DECLARE_UNIQUE_INDEX | ( | pg_inherits_relid_seqno_index | , |
2680 | , | ||
on pg_inherits using | btreeinhrelid oid_ops, inhseqno int4_ops | ||
) |
Definition at line 453 of file pg_inherits.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), GETSTRUCT, HeapTupleIsValid, InheritsRelidSeqnoIndexId, sort-test::key, ObjectIdGetDatum, OidIsValid, RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by index_concurrently_swap(), index_drop(), and RemoveInheritance().
Definition at line 165 of file pg_inherits.c.
References CurrentMemoryContext, HASHCTL::entrysize, find_inheritance_children(), HASH_BLOBS, HASH_CONTEXT, hash_create(), hash_destroy(), HASH_ELEM, HASH_ENTER, hash_search(), HASHCTL::hcxt, HASHCTL::keysize, lappend_int(), lappend_oid(), lfirst_int, lfirst_oid, list_free(), SeenRelsEntry::list_index, list_length(), list_make1_int, list_make1_oid, and list_nth_cell().
Referenced by acquire_inherited_sample_rows(), apply_handle_truncate(), ATCheckPartitionsNotInUse(), ATExecAddInherit(), ATExecAttachPartition(), ATExecValidateConstraint(), ATPrepAlterColumnType(), ATSimpleRecursion(), check_default_partition_contents(), CloneFkReferencing(), CreateTrigger(), ExecuteTruncate(), expand_inherited_rtentry(), expand_vacuum_rel(), GetPublicationRelations(), LockTableRecurse(), OpenTableList(), pg_partition_tree(), ProcessUtilitySlow(), ReindexPartitions(), rename_constraint_internal(), renameatt_internal(), and sepgsql_dml_privileges().
Definition at line 55 of file pg_inherits.c.
References AccessShareLock, BTEqualStrategyNumber, GETSTRUCT, has_subclass(), i, InheritsParentIndexId, sort-test::key, lappend_oid(), sort-test::list, LockRelationOid(), NIL, NoLock, ObjectIdGetDatum, oid_cmp(), palloc(), pfree(), qsort, RELOID, repalloc(), ScanKeyInit(), SearchSysCacheExists1, systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), table_open(), and UnlockRelationOid().
Referenced by ATAddCheckConstraint(), ATExecAddColumn(), ATExecDropColumn(), ATExecDropConstraint(), ATPrepAlterColumnType(), ATPrepDropExpression(), CreateTrigger(), find_all_inheritors(), RelationBuildPartitionDesc(), rename_constraint_internal(), and renameatt_internal().
Definition at line 265 of file pg_inherits.c.
References elog, ERROR, GETSTRUCT, HeapTupleIsValid, ObjectIdGetDatum, ReleaseSysCache(), RELOID, and SearchSysCache1().
Referenced by find_inheritance_children(), subquery_planner(), and typeInheritsFrom().
Definition at line 285 of file pg_inherits.c.
References AccessShareLock, BTEqualStrategyNumber, HeapTupleIsValid, InheritsRelidSeqnoIndexId, ObjectIdGetDatum, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by ATExecDetachPartition(), CreateTrigger(), and DefineIndex().
Definition at line 416 of file pg_inherits.c.
References CatalogTupleInsert(), heap_form_tuple(), heap_freetuple(), Int32GetDatum, ObjectIdGetDatum, RelationGetDescr, RowExclusiveLock, table_close(), table_open(), and values.
Referenced by index_concurrently_swap(), index_create(), and StoreCatalogInheritance1().
Definition at line 314 of file pg_inherits.c.
References AccessShareLock, BTEqualStrategyNumber, GETSTRUCT, has_subclass(), InheritsRelidSeqnoIndexId, InvalidOid, lappend_oid(), lfirst_oid, list_free(), list_make1_oid, list_member_oid(), NIL, ObjectIdGetDatum, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), table_open(), typeidTypeRelid(), and typeOrDomainTypeRelid().
Referenced by can_coerce_type(), and coerce_type().
FormData_pg_inherits |
Definition at line 37 of file pg_inherits.h.