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

Function typenameTypeId

src/backend/parser/parse_type.c:292–303  ·  view source on GitHub ↗

* typenameTypeId - given a TypeName, return the type's OID * * This is similar to typenameType, but we only hand back the type OID * not the syscache entry. */

Source from the content-addressed store, hash-verified

290 * not the syscache entry.
291 */
292Oid
293typenameTypeId(ParseState *pstate, const TypeName *typeName)
294{
295 Oid typoid;
296 Type tup;
297
298 tup = typenameType(pstate, typeName, NULL);
299 typoid = ((Form_pg_type) GETSTRUCT(tup))->oid;
300 ReleaseSysCache(tup);
301
302 return typoid;
303}
304
305/*
306 * typenameTypeIdAndMod - given a TypeName, return the type's OID and typmod

Callers 15

DefineTypeFunction · 0.85
AlterEnumFunction · 0.85
DefineRangeFunction · 0.85
AlterDomainDefaultFunction · 0.85
AlterDomainNotNullFunction · 0.85
AlterDomainAddConstraintFunction · 0.85
RenameTypeFunction · 0.85
AlterTypeNamespaceFunction · 0.85
CreateFunctionFunction · 0.85
CreateCastFunction · 0.85

Calls 2

typenameTypeFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected