Re: BUG #5835: PL/Python crashes - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #5835: PL/Python crashes
Date
Msg-id 1295280568-sup-6518@alvh.no-ip.org
Whole thread Raw
In response to Re: BUG #5835: PL/Python crashes  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-bugs
Excerpts from Alex Hunsaker's message of vie ene 14 03:33:17 -0300 2011:
> On Thu, Jan 13, 2011 at 06:57, Julien Demoor <jdemoor@gmail.com> wrote:

> It looks like we are not incrementing a reference count for NULL
> entries in an array.  The attached fixes it for me.  I did look for
> other places where we might have missed this and did not find any.  (
> the PyDict_SetItemString() that use Py_None look fishy, but apparently
> work ).

Thanks, applied to 9.0 and HEAD.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #5841: rank()+1 fails, 1+rank() succeeds
Next
From: Robert Haas
Date:
Subject: Re: Problems with adding a is not null to a query.