| От | Tom Lane |
|---|---|
| Тема | Re: determining a type oid from the name |
| Дата | |
| Msg-id | 24151.1329942035@sss.pgh.pa.us обсуждение |
| Ответ на | Re: determining a type oid from the name (Andrew Dunstan <andrew@dunslane.net>) |
| Ответы |
Re: determining a type oid from the name
|
| Список | pgsql-hackers |
Andrew Dunstan <andrew@dunslane.net> writes:
> Maybe I need to be more clear. The C code I'm writing will process
> composites. I want to cache the Oids of certain non-builtin types in the
> function info's fn_extra, and then be able to test whether or not the
> fields in the composites are of those types.
What's your basis for identifying those types in the first place?
Name? Doesn't seem terribly robust if the other extension can be
installed in some random schema. But anyway, something in
parser/parse_type.c ought to help you with that --- maybe
parseTypeString?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера