MCPcopy Create free account
hub / github.com/documentdb/documentdb / IsTextIndexMatch

Function IsTextIndexMatch

pg_documentdb/src/index_am/rum.c:1014–1030  ·  view source on GitHub ↗

* Returns true if the IndexPath corresponds to a "text" * index. This is used to force the index cost to 0 to make sure * we use the text index. */

Source from the content-addressed store, hash-verified

1012 * we use the text index.
1013 */
1014static bool
1015IsTextIndexMatch(IndexPath *path)
1016{
1017 ListCell *cell;
1018 foreach(cell, path->indexclauses)
1019 {
1020 IndexClause *clause = lfirst(cell);
1021 if (IsTextPathOpFamilyOid(
1022 path->indexinfo->relam,
1023 path->indexinfo->opfamily[clause->indexcol]))
1024 {
1025 return true;
1026 }
1027 }
1028
1029 return false;
1030}
1031
1032
1033static IndexScanDesc

Callers 1

Calls 2

IsTextPathOpFamilyOidFunction · 0.85
foreachFunction · 0.50

Tested by

no test coverage detected