Re: Bug in plpython's Python Generators

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Jean-Baptiste Quenot <jbq(at)caraldi(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Subject: Re: Bug in plpython's Python Generators
Date: 2010-11-14 16:44:04
Message-ID: 4CE011D4.3070604@wulczer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
plpython-generator-fix.diff text/x-patch 3.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2010-11-14 16:59:18 Re: add label to enum syntax
Previous Message Tom Lane 2010-11-14 16:24:08 Re: [COMMITTERS] pgsql: Improved parallel make support