Re: Determining the OID of a certain type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Determining the OID of a certain type
Дата
Msg-id 15940.1269260288@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Determining the OID of a certain type  (Carsten Kropf <ckropf2@fh-hof.de>)
Ответы Re: Determining the OID of a certain type  (Carsten Kropf <ckropf2@fh-hof.de>)
Список pgsql-general
Carsten Kropf <ckropf2@fh-hof.de> writes:
> I wanted to ask, if there is a method to determine the oid of a
> certain type using the C backend interface?

Starting from what?

For built-in types it's usual practice to use the #define from
pg_type.h, if there is one.  If you have a string name for the type,
there's a parser function to derive an OID, which I forget the name
of but it's probably in parse_type.c.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to dump JUST procedures/funnctions?
Следующее
От: "Rob Richardson"
Дата:
Сообщение: Re: Daylight savings time confusion