New PL/Python

2 views
Skip to first unread message

Jonathan Leto

unread,
May 8, 2010, 8:53:24 PM5/8/10
to plpa...@googlegroups.com
Howdy,

A new PL/Python just came out, it has some interesting features, like
subtransactions:

http://python.projects.postgresql.org/backend/

Duke


--
Jonathan "Duke" Leto
jona...@leto.net
http://leto.net

Joshua Tolley

unread,
May 9, 2010, 12:07:02 AM5/9/10
to plpa...@googlegroups.com
On Sat, May 08, 2010 at 05:53:24PM -0700, Jonathan Leto wrote:
> Howdy,
>
> A new PL/Python just came out, it has some interesting features, like
> subtransactions:
>
> http://python.projects.postgresql.org/backend/

It's my guess (without, of course, bothering to look at the code) that this is
a Python-ish wrapper around SPI calls to create savepoints. It's an
interesting thought that PL/Parrot might provide features in one HLL that
aren't available in another, because one HLL provides an idiom or technique
that maps very nicely over something the database might be expected to do. For
instance languages with exception handling might find their try blocks
automatically wrapped in savepoints in PL/Parrot (whether that's a good idea
or not is something else entirely). Anyway, it's too early to do such things
now, but it's fun to consider.

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

signature.asc
Reply all
Reply to author
Forward
0 new messages