Re: BUG #5835: PL/Python crashes

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Alex Hunsaker <badalex(at)gmail(dot)com>
Cc: Julien Demoor <jdemoor(at)gmail(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5835: PL/Python crashes
Date: 2011-01-17 16:09:56
Message-ID: 1295280568-sup-6518@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2011-01-17 17:11:24 Re: Problems with adding a is not null to a query.
Previous Message Alvaro Herrera 2011-01-17 15:10:19 Re: BUG #5841: rank()+1 fails, 1+rank() succeeds