Carsten Kropf <ckro...@fh-hof.de> writes:
> basically I looked inside these functions in parse_type.c and did not find an 
> "easy to use" application here. So I considered trying to construct the 
> required arguments passed to typenameType. However, during the development, I 
> found the following function: 
> Oid
> TypenameGetTypid(const char *typname)
> which does indeed do the lookup of my particular type in the cache and system 
> catalog tables. Thanks a lot for the hint!

Actually, parseTypeString() is what I was thinking of.  TypenameGetTypid
won't cope with schema-qualified names, nor a lot of other cases.

                        regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to