Re: [HACKERS] Enum type emulation: problem with opaque type in PL/pgSQL functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Enum type emulation: problem with opaque type in PL/pgSQL functions
Дата
Msg-id 7060.974996008@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Enum type emulation: problem with opaque type in PL/pgSQL functions  (Max Fonin <fonin@ziet.zhitomir.ua>)
Ответы Re: [HACKERS] Enum type emulation: problem with opaque type in PL/pgSQL functions  (Max Fonin <fonin@ziet.zhitomir.ua>)
Список pgsql-general
Max Fonin <fonin@ziet.zhitomir.ua> writes:
> I guess the problem is that PL/pgSQL doesn't handle opaque type correctly.

No it doesn't, which is not surprising considering that opaque isn't
really a type at all.  The error message could be improved though :-(

Currently I believe that the only way to write datatype I/O routines
is to do it in C, because what they really need to deal in is C-style
strings, and those are not an SQL-level type.

            regards, tom lane

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

Предыдущее
От: "Pankaj Soni"
Дата:
Сообщение: Pro. Regarding Arrays.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: can't get user authentication to work - HELP!