Re: Bug in plpython's Python Generators - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug in plpython's Python Generators
Date
Msg-id 4845.1289849361@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug in plpython's Python Generators  (Jan Urbański <wulczer@wulczer.org>)
List pgsql-hackers
Jan Urbański <wulczer@wulczer.org> writes:
> 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.

Applied back to 8.2.  Thanks for the patch.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Re: Rethinking hint bits WAS: Protecting against unexpected zero-pages: proposal
Next
From: Robert Haas
Date:
Subject: Re: Instrument checkpoint sync calls