MCPcopy Create free account
hub / github.com/apache/cloudberry / GetRelationPartConstraints

Method GetRelationPartConstraints

src/backend/gpopt/gpdbwrappers.cpp:744–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744Node *
745gpdb::GetRelationPartConstraints(Relation rel)
746{
747 GP_WRAP_START;
748 {
749 /* catalog tables: pg_partition, pg_partition_rule, pg_constraint */
750 List *part_quals = RelationGetPartitionQual(rel);
751 if (part_quals)
752 {
753 return (Node *) make_ands_explicit(part_quals);
754 }
755 }
756 GP_WRAP_END;
757 return nullptr;
758}
759
760PartitionKey
761gpdb::GetRelationPartitionKey(Relation rel)

Callers

nothing calls this directly

Calls 2

RelationGetPartitionQualFunction · 0.85
make_ands_explicitFunction · 0.85

Tested by

no test coverage detected