Re: Enable pl/python to return records based on multiple OUT params

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hannu Krosing <hannu(at)2ndQuadrant(dot)com>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Enable pl/python to return records based on multiple OUT params
Date: 2008-11-04 14:57:56
Message-ID: 17342.1225810676@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hannu Krosing <hannu(at)2ndQuadrant(dot)com> writes:
> ... even the code currently in CVS crashes the backend for this

> py=# create or replace function add_any(in i1 anyelement, in i2
> anyelement, out t text) language plpythonu as $$
> return i1 + i2
> $$;
> CREATE FUNCTION
> py=# select * from add_any(1,2);
> server closed the connection unexpectedly

Well, that's just a stupid uninitialized-variable bug :-(

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2008-11-04 15:02:57 Re: Enable pl/python to return records based on multiple OUT params
Previous Message Peter Eisentraut 2008-11-04 14:50:42 Re: patch: array_ndims