PL/Python array support
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-hackers@postgresql.org
Date: 2009-11-04T14:02:08Z
Lists: pgsql-hackers
Attachments
- plpython-arrays.diff (text/x-patch) patch
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. I have settled on two implementation restrictions for the moment: - Only supports one-dimensional arrays. (Python has no multidimensional lists, so the semantics of this would be dubious.) - Does not support returning arrays of composite types. (Basically too complicated to implement right now and seemingly of limited practical value.)