Re: PL/Python array support

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: PL/Python array support
Дата
Msg-id 1257350798.12075.0.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: PL/Python array support  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On ons, 2009-11-04 at 09:44 -0500, Robert Haas wrote:
> On Wed, Nov 4, 2009 at 9:02 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
> > Here is a patch to support arrays in PL/Python as parameters and return
> > values.  It converts an array parameter to a Python "list", and converts
> > a Python "sequence" return value back to an array.
> 
> This is probably a stupid question, but why would you use different
> types for incoming and outgoing data flow?

A list is one particular kind of sequence.

See also
http://docs.python.org/reference/datamodel.html#the-standard-type-hierarchy



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: actualised funcs typmod patch
Следующее
От: Tom Lane
Дата:
Сообщение: WIP: pushing parser hooks through SPI and plancache