PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ index_get_am()

static int index_get_am ( Oid  index_oid)
static

Definition at line 2338 of file gserialized_estimate.c.

2339 {
2340  int index_am;
2341  Form_pg_class index_rel_form;
2342  HeapTuple index_rel_tuple = SearchSysCache1(RELOID, ObjectIdGetDatum(index_oid));
2343 
2344  if (!HeapTupleIsValid(index_rel_tuple))
2345  elog(ERROR, "cache lookup failed for index %u", index_oid);
2346 
2347  index_rel_form = (Form_pg_class) GETSTRUCT(index_rel_tuple);
2348  index_am = index_rel_form->relam;
2349  ReleaseSysCache(index_rel_tuple);
2350  return index_am;
2351 }

Referenced by table_get_spatial_index().

Here is the caller graph for this function: