Re: Python setof patch

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Gerrit van Dyk <gvandyk(at)agileworks(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Python setof patch
Date: 2005-06-19 16:49:23
Message-ID: 20050619164923.GA19553@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Wed, Jun 15, 2005 at 03:03:46PM +0200, Gerrit van Dyk wrote:
>
> My next project I am working in is to get the PL/Python module to return
> records (ie. structured data)

Hmmm...if you're interested in working on PL/Python, then you might
mosey over to pgsql-hackers and see the "process crash when a
plpython function returns unicode" thread:

http://archives.postgresql.org/pgsql-hackers/2005-06/msg00806.php

I was going to submit a simple patch to fix the immediate problem,
calling ereport(ERROR, ...) if PyObject_Str() returned NULL. I
haven't decided on an error message yet, not being sure if I should
hard-code something generic or if there's a way to get a more
specific error message from Python. Tino Wildenhain followed up
with a suggestion to improve PL/Python's Unicode support. Is that
anything you'd be interested in working on? If so then please reply
to the thread in pgsql-hackers to keep the discussion in one place
(I already moved it to -hackers from -bugs because the former seemed
more a appropriate place for extended discussion).

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2005-06-19 17:03:49 Re: buildfarm notifications
Previous Message Bruce Momjian 2005-06-19 13:11:56 Re: win32/MSVC fix for libpq