| 742 | } |
| 743 | |
| 744 | Node * |
| 745 | gpdb::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 | |
| 760 | PartitionKey |
| 761 | gpdb::GetRelationPartitionKey(Relation rel) |
nothing calls this directly
no test coverage detected