pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Kelly Burkhart <kelly@tradebotsystems.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: pl/pythonu - return values
Date: Wed, 19 Oct 2005 15:45:04 -0700
Message-ID: <4356CC70.5050508@commandprompt.com> (raw)
In-Reply-To: <1129748586.9370.44.camel@krb06.tradebot.com>
References: <1129748586.9370.44.camel@krb06.tradebot.com>

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/




view thread (2+ messages)

Message-ID: <4356CC70.5050508@commandprompt.com>
Permalink:  ../4356CC70.5050508@commandprompt.com/
Also on:    postgresql.org/message-id/4356CC70.5050508@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jd@commandprompt.com, kelly@tradebotsystems.com
  Subject: Re: pl/pythonu - return values
  In-Reply-To: <4356CC70.5050508@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox