I'm developing an extension to PostgreSQL using C. I created a user-defined type called geo_trajc_elem. I also created a function to generate an array of this new type.
Is there a function to get the id of my new type? Like get_oid_elem (struct geo_trajc_elem)
In this case, it is not possible to use get_fn_expr_argtype because I am not passing the new type as argument but creating it in the function itself, correct ?
>Is there a function to get the id of my new type? Like get_oid_elem (struct geo_trajc_elem)
A simple
SELECT oid, typname
FROM pg_type
WHERE typname = 'struct geo_trajc_elem';
should do the trick for you.
--
Melvin Davidson I reserve the right to fantasize. Whether or not you wish to share my fantasy is entirely up to you.