| От | Tom Lane |
|---|---|
| Тема | Re: Determining return type of polymorphic function |
| Дата | |
| Msg-id | 29672.1123784250@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Determining return type of polymorphic function (Martijn van Oosterhout <kleptog@svana.org>) |
| Ответы |
Re: Determining return type of polymorphic function
|
| Список | pgsql-hackers |
Martijn van Oosterhout <kleptog@svana.org> writes:
> What I'm trying to do now is use fcinfo->flinfo->fn_oid to lookup
> pg_proc and get the return type from there, but something tells me
> there must be an easier way.
No, I think you're stuck. The internal calls for type I/O routines
don't set up fn_expr (since there is no expression tree).
One possibility, depending on your time horizon for this, is to change
the getTypeIOParam rules so that ordinary types get their own OID as
second argument.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера