Re: PL/Ruby, INOUT parameters / SETOF record

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Philippe Lang" <philippe(dot)lang(at)attiksystem(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/Ruby, INOUT parameters / SETOF record
Date: 2006-04-26 16:44:10
Message-ID: 19110.1146069850@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Philippe Lang" <philippe(dot)lang(at)attiksystem(dot)ch> writes:
> CREATE FUNCTION perl_test(a inout integer, b inout integer, r1 out integer,
> r2 out integer) SETOF record AS

> How would you translate that in PL/Ruby?

I think you wouldn't :-( --- AFAICT from the documentation, plruby
doesn't know about OUT parameters yet. You'll need to make an
explicitly declared composite type for the result rows, instead.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message alexandre - aldeia digital 2006-04-26 17:06:08 pg_dump -t <> pg_restore -t
Previous Message Tom Lane 2006-04-26 16:28:44 Re: Problem with complex outer join expression