Re: plpythonu AKA am I crazy? or....

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpythonu AKA am I crazy? or....
Дата
Msg-id 6108.1074282886@sss.pgh.pa.us
обсуждение исходный текст
Ответ на plpythonu AKA am I crazy? or....  (Aron Roberts <aron@slam.cc>)
Ответы Re: plpythonu AKA am I crazy? or....  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
Aron Roberts <aron@slam.cc> writes:
> When I create a function with an argument or return type of say an
> integer the data type seems to be passed properly. When trying for
> instance to send or return an integer array it always seems to be passed
> as a string which is very nearly useless.
> is this a quality of any embedded language or perhaps plpython in
> particular?

plpython in particular --- IIRC, its code for mapping between SQL
datatypes and Python datatypes isn't real bright.  If there is a better
Python construct that arrays could be mapped to, feel free to send in
a patch ...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problems with \copy and delimiters ','
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: plpythonu AKA am I crazy? or....