Re: pl/pythonu - return values - Mailing list pgsql-interfaces

From Joshua D. Drake
Subject Re: pl/pythonu - return values
Date
Msg-id 4356CC70.5050508@commandprompt.com
Whole thread Raw
In response to pl/pythonu - return values  (Kelly Burkhart <kelly@tradebotsystems.com>)
List pgsql-interfaces
Kelly Burkhart wrote:

>Can pl/pythonu procedures return anything other than a string?
>
>I have some python code which communicates to another process and can
>either return sensible results or some kind of error.  I was hoping to
>return something like:
>
>create type rval_t as (status integer, status_txt text, result text);
>  
>
Well you could have it return the set using a setof function.

>Is something like this possible?
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match
>  
>


-- 
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/



pgsql-interfaces by date:

Previous
From: Kelly Burkhart
Date:
Subject: pl/pythonu - return values
Next
From: Zlatko Matić
Date:
Subject: versions of oDBC driver