INNER CODE UNIT · C
index_heap_oid
timescale/pg_textsearch · src/mod.c:2720
index_heap_oid = index_rel->rd_index->indrelid;
belongs = index_heap_oid == heap_oid;
if (!belongs && get_rel_relispartition(index_heap_oid))
{
ancestors = get_partition_ancestors(index_heap_oid);
belongs = list_member_oid(ancestors, heap_oid);
list_free(ancestors);
}
if (!belongs)
{
relation_close(index_rel, AccessShareLock);
continue;
}
if (index_rel->rd_rel->relkind == RELKIND_PARTITIONED_INDEX)
index_tree = find_all_inheritors(indexoid, AccessShareLock, NULL);
else if (index_rel->rd_rel->relkind == RELKIND_INDEX)
index_tree = list_make1_oid(indexoid);