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

Function typeidType

src/backend/parser/parse_type.c:577–586  ·  view source on GitHub ↗

return a Type structure, given a type id */ NB: caller must ReleaseSysCache the type tuple when done with it */

Source from the content-addressed store, hash-verified

575/* return a Type structure, given a type id */
576/* NB: caller must ReleaseSysCache the type tuple when done with it */
577Type
578typeidType(Oid id)
579{
580 HeapTuple tup;
581
582 tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(id));
583 if (!HeapTupleIsValid(tup))
584 elog(ERROR, "cache lookup failed for type %u", id);
585 return (Type) tup;
586}
587
588/* given type (as type struct), return the type OID */
589Oid

Callers 4

makeIvmAggColumnFunction · 0.85
prebuild_temp_tableFunction · 0.85
coerce_typeFunction · 0.85

Calls 2

SearchSysCache1Function · 0.85
ObjectIdGetDatumFunction · 0.85

Tested by

no test coverage detected