Re: PL/Python array support - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: PL/Python array support
Date
Msg-id 1257350798.12075.0.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: PL/Python array support  (Robert Haas <robertmhaas@gmail.com>)
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: actualised funcs typmod patch
Next
From: Tom Lane
Date:
Subject: WIP: pushing parser hooks through SPI and plancache