Re: Bug in plpython's Python Generators
Marti Raudsepp <marti@juffo.org>
From: Marti Raudsepp <marti@juffo.org>
To: Jan Urbański <wulczer@wulczer.org>
Cc: Alvaro Herrera <alvherre@commandprompt.com>, Jean-Baptiste Quenot <jbq@caraldi.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2010-11-14T18:07:44Z
Lists: pgsql-hackers
On Sun, Oct 24, 2010 at 01:32, Jan Urbański <wulczer@wulczer.org> wrote: > The error handling in plpython is well-known to be a mess, hence the > confusing error message that OP got. Another annoying thing is that SPI > calls are not done in a subtransaction, which means you can't trap > errors with a try/catch Python construct. I'm currently trying to get > try/catch to work and might end up cleaning up error handling as well... > but this can take me some time, so maybe someone should plug this > particular hole right away. While on this topic, maybe you can chime in on the pgsql-docs list for my documentation patches to document the current (broken) behavior? Regards, Marti