X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CE815DA745 for ; Wed, 19 Oct 2005 16:03:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95224-07 for ; Wed, 19 Oct 2005 19:03:08 +0000 (GMT) Received: from tbmail.tradebot.com (Tradebot-Systems-1096753.cust-rtr.swbell.net [68.90.170.2]) by svr1.postgresql.org (Postfix) with ESMTP id ACD86DA74E for ; Wed, 19 Oct 2005 16:03:08 -0300 (ADT) Received: from 192.168.200.29 ([192.168.200.29]) by tbmail.tradebot.com ([192.168.1.50]) with Microsoft Exchange Server HTTP-DAV ; Wed, 19 Oct 2005 19:03:06 +0000 Received: from krb06 by TBMAIL; 19 Oct 2005 14:03:06 -0500 Subject: pl/pythonu - return values From: Kelly Burkhart To: pgsql-interfaces@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 19 Oct 2005 14:03:06 -0500 Message-Id: <1129748586.9370.44.camel@krb06.tradebot.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/17 X-Sequence-Number: 5779 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?