Re: pl/pythonu - return values

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Kelly Burkhart <kelly(at)tradebotsystems(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: pl/pythonu - return values
Date: 2005-10-19 22:45:04
Message-ID: 4356CC70.5050508@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Zlatko Matić 2005-10-20 10:33:58 versions of oDBC driver
Previous Message Kelly Burkhart 2005-10-19 19:03:06 pl/pythonu - return values