INNER CODE UNIT · C
indexoids
timescale/pg_textsearch · src/mod.c:1811
indexoids = lappend_oid(indexoids, class_form->oid);
}
systable_endscan(scan);
table_close(class_rel, AccessShareLock);
return indexoids;
}
static Oid
tp_catalog_tablespace_oid(Oid tablespace_oid)
{
HeapTuple tuple;
Form_pg_database database;
Oid catalog_oid = tablespace_oid;
tuple = SearchSysCache1(DATABASEOID, ObjectIdGetDatum(MyDatabaseId));
if (!HeapTupleIsValid(tuple))
elog(ERROR, "cache lookup failed for database %u", MyDatabaseId);
database = (Form_pg_database)GETSTRUCT(tuple);