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

Function RelationGetReplicaIndex

src/backend/utils/cache/relcache.c:5151–5165  ·  view source on GitHub ↗

* RelationGetReplicaIndex -- get OID of the relation's replica identity index * * Returns InvalidOid if there is no such index. */

Source from the content-addressed store, hash-verified

5149 * Returns InvalidOid if there is no such index.
5150 */
5151Oid
5152RelationGetReplicaIndex(Relation relation)
5153{
5154 List *ilist;
5155
5156 if (!relation->rd_indexvalid)
5157 {
5158 /* RelationGetIndexList does the heavy lifting. */
5159 ilist = RelationGetIndexList(relation);
5160 list_free(ilist);
5161 Assert(relation->rd_indexvalid);
5162 }
5163
5164 return relation->rd_replidindex;
5165}
5166
5167/*
5168 * RelationGetIndexExpressions -- get the index expressions for an index

Callers 5

GetRelationIdentityOrPKFunction · 0.85
build_replindex_scan_keyFunction · 0.85
CheckCmdReplicaIdentityFunction · 0.85

Calls 2

RelationGetIndexListFunction · 0.85
list_freeFunction · 0.50

Tested by

no test coverage detected