given type (as type struct), return its 'typrelid' attribute */
| 627 | |
| 628 | /* given type (as type struct), return its 'typrelid' attribute */ |
| 629 | Oid |
| 630 | typeTypeRelid(Type typ) |
| 631 | { |
| 632 | Form_pg_type typtup; |
| 633 | |
| 634 | typtup = (Form_pg_type) GETSTRUCT(typ); |
| 635 | return typtup->typrelid; |
| 636 | } |
| 637 | |
| 638 | /* given type (as type struct), return its 'typcollation' attribute */ |
| 639 | Oid |