Re: 2 line patch to allow plpythonu functions to return void ... - Mailing list pgsql-patches

From Tom Lane
Subject Re: 2 line patch to allow plpythonu functions to return void ...
Date
Msg-id 11582.1140887400@sss.pgh.pa.us
Whole thread Raw
In response to 2 line patch to allow plpythonu functions to return void ...  (James Robinson <jlrobins@socialserve.com>)
Responses Re: 2 line patch to allow plpythonu functions to return void ...
Re: 2 line patch to allow plpythonu functions to return void ...
Re: 2 line patch to allow plpythonu functions to return
List pgsql-patches
James Robinson <jlrobins@socialserve.com> writes:
> Shamelessly cloned from the parallel code in pltcl, an exception for
> void in denying pseudotypes being returned. Pl/tcl didn't reference
> VOIDOID anywhere else, so ... .

This sort of thing normally requires more thought than just removing
the safety check.  What happens when the python code does/doesn't return
a value, in both cases (declared return type void or not)?

            regards, tom lane

pgsql-patches by date:

Previous
From: James Robinson
Date:
Subject: 2 line patch to allow plpythonu functions to return void ...
Next
From: "Harald Armin Massa"
Date:
Subject: Re: 2 line patch to allow plpythonu functions to return void ...