Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9AEA663296D for ; Sat, 7 Aug 2010 11:49:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 03228-09 for ; Sat, 7 Aug 2010 14:49:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 6B92963255B for ; Sat, 7 Aug 2010 11:49:51 -0300 (ADT) Received: by fxm14 with SMTP id 14so4353711fxm.19 for ; Sat, 07 Aug 2010 07:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to :disposition-notification-to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=TS1apDi+064RX/wzOdmmFzzcaB2ZrI5ZWa7PwJ6QW9k=; b=VOPVhSh7bAiuuJmvhA52/MUBnpD8Cj47Ij8trtY9MMqItBHkg5wB2hLGqOv91oJjxA MYGhrnCUCfP+PY8/zS+36SmBVy/nEvsRXbgdStWsygRg2B/uNHZTKE1rm2f4GdSv+r3h C0QLGIqb2g0vyywjT6DeKsGS+cnmTV7pEPfDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:disposition-notification-to:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=KYOVn7Ud5TgZ/ydjYz9JlvwUChLfUqzgow+KPhYuZzE0C6obHNHqRuph7oj0sgkYpa 9ePPP0SthcO//LqL6vxArNfbIpMq76IUvXNGEcTCFiMbt1jcGmKAViWLIL3YXr8ju/fA p/cOSrLuDzBivry/TMw0oVe+s6HTvKbtPE/NA= Received: by 10.223.119.210 with SMTP id a18mr14317716far.52.1281192589463; Sat, 07 Aug 2010 07:49:49 -0700 (PDT) Received: from [192.168.100.100] (178-164-149-107.pool.digikabel.hu [178.164.149.107]) by mx.google.com with ESMTPS id i9sm648540faa.39.2010.08.07.07.49.47 (version=SSLv3 cipher=RC4-MD5); Sat, 07 Aug 2010 07:49:48 -0700 (PDT) Subject: pl/python out params From: Imre Horvath To: pgsql-sql@postgresql.org Content-Type: text/plain; charset="UTF-8" Date: Sat, 07 Aug 2010 16:49:46 +0200 Message-ID: <1281192586.5038.3.camel@cytherian.blemidon.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-4.fc13) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201008/33 X-Sequence-Number: 34473 Hi! Is there a way to use output parameters with a pl/python fucntion? I've tried with no luck: if I define out parameters, it says return type must be record, if I define a record return type, I get an error on executing that pl/python doesn't support record return type... My simple test func is: create or replace function outtest(out i integer, out j text) returns boolean as $BODY$ i = 1 j = 'something' return True $BODY$ language plpythonu; Thanks in advance: Imre Horvath