From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | PL/Python array support |
Date: | 2009-11-04 14:02:08 |
Message-ID: | 1257343328.18382.18.camel@fsopti579.F-Secure.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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.)
Attachment | Content-Type | Size |
---|---|---|
plpython-arrays.diff | text/x-patch | 12.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Bernd Helmle | 2009-11-04 14:39:56 | ALTER TABLE...ALTER COLUMN vs inheritance |
Previous Message | Thom Brown | 2009-11-04 13:48:10 | Re: [BUG?] strange behavior in ALTER TABLE ... RENAME TO on inherited columns |