* 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. */
| 290 | * not the syscache entry. |
| 291 | */ |
| 292 | Oid |
| 293 | typenameTypeId(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 |
no test coverage detected