Skip site navigation (1) Skip section navigation (2)

pgsql: Backpatch to 8.0.X: In several places PL/Python was calling

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Backpatch to 8.0.X: In several places PL/Python was calling
Date: 2005-09-23 21:02:38
Message-ID: 20050923210238.417D3D9411@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Backpatch to 8.0.X:

In several places PL/Python was calling PyObject_Str() and then
PyString_AsString() without checking if the former had returned
NULL to indicate an error.  PyString_AsString() doesn't expect a
NULL argument, so passing one causes a segmentation fault.  This
patch adds checks for NULL and raises errors via PLy_elog(), which
prints details of the underlying Python exception.  The patch also
adds regression tests for these checks.  All tests pass on my
Solaris 9 box running HEAD and Python 2.4.1.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.58.4.1 -> r1.58.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c.diff?r1=1.58.4.1&r2=1.58.4.2)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2005-09-23 21:44:26
Subject: Re: [COMMITTERS] pgsql: Basic documentation for ROLEs.
Previous:From: Bruce MomjianDate: 2005-09-23 20:41:41
Subject: pgsql: Add: > o Allow PL/PgSQL to support WITH HOLD cursors

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group