pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kelly Burkhart <kelly@tradebotsystems.com>
To: pgsql-interfaces@postgresql.org
Subject: pl/pythonu - return values
Date: Wed, 19 Oct 2005 14:03:06 -0500
Message-ID: <1129748586.9370.44.camel@krb06.tradebot.com> (raw)

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);

Is something like this possible?




view thread (2+ messages)  latest in thread

Message-ID: <1129748586.9370.44.camel@krb06.tradebot.com>
Permalink:  ../1129748586.9370.44.camel@krb06.tradebot.com/
Also on:    postgresql.org/message-id/1129748586.9370.44.camel@krb06.tradebot.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: kelly@tradebotsystems.com
  Subject: Re: pl/pythonu - return values
  In-Reply-To: <1129748586.9370.44.camel@krb06.tradebot.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