Re: Determining the OID of a certain type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Determining the OID of a certain type
Дата
Msg-id 20693.1269271413@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Determining the OID of a certain type  (Carsten Kropf <ckropf2@fh-hof.de>)
Ответы Re: Determining the OID of a certain type
Список pgsql-general
Carsten Kropf <ckropf2@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
consideredtrying to construct the required arguments passed to typenameType. However, during the development, I found
thefollowing 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Daylight savings time confusion
Следующее
От: Greg Stark
Дата:
Сообщение: Re: pgreplay log file replayer released