Re: Bug in plpython's Python Generators
Jan Urbański <wulczer@wulczer.org>
From: Jan Urbański <wulczer@wulczer.org>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Jean-Baptiste Quenot <jbq@caraldi.com>, pgsql-hackers <pgsql-hackers@postgresql.org>, Oleg Bartunov <oleg@sai.msu.su>
Date: 2010-11-14T16:44:04Z
Lists: pgsql-hackers
Attachments
- plpython-generator-fix.diff (text/x-patch) patch
On 24/10/10 00:32, Jan Urbański wrote: > On 21/10/10 20:48, Alvaro Herrera wrote: >> ... and presumably somebody can fix the real bug that Jean-Baptiste hit, >> too. > > AFAICS the error comes from PLy_function_handler disconnecting from SPI > after calling into the Python code and then going ahead and reading the > result from the iterator. Here's a patch with a fix for that bug. Cheers, Jan