given type (as type struct), return the type OID */
| 587 | |
| 588 | /* given type (as type struct), return the type OID */ |
| 589 | Oid |
| 590 | typeTypeId(Type tp) |
| 591 | { |
| 592 | if (tp == NULL) /* probably useless */ |
| 593 | elog(ERROR, "typeTypeId() called with NULL type struct"); |
| 594 | return ((Form_pg_type) GETSTRUCT(tp))->oid; |
| 595 | } |
| 596 | |
| 597 | /* given type (as type struct), return the length of type */ |
| 598 | int16 |
no outgoing calls
no test coverage detected