Re: return two elements

From: "Rodríguez Rodríguez, Pere" <prr(at)hosppal(dot)es>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: return two elements
Date: 2005-06-07 07:00:28
Message-ID: B35596C2EFF3D2118EE100A0C94B2A60014BFBDE@palamos_nt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In future releases is planned to incorporate IN/OUT declaration in
parameters of user functions?

-----Mensaje original-----
De: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Enviado el: lunes 6 de junio de 2005 17:10
Para: "Rodríguez Rodríguez, Pere"
CC: pgsql-general(at)postgresql(dot)org
Asunto: Re: [GENERAL] return two elements

=?ISO-8859-1?Q?=22Rodr=EDguez_Rodr=EDguez=2C_Pere=22?= <prr(at)hosppal(dot)es>
writes:
> how can I write a function that return two or more elements?

In existing releases the best way to do this is to create a named
composite type and have the function return that, not RECORD.

regards, tom lane

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-06-07 07:30:09 Re: return two elements
Previous Message ouyang_jw 2005-06-07 05:30:43 Re: how to get sequence list ?