Re: return two elements - Mailing list pgsql-general

From Rodríguez Rodríguez, Pere
Subject Re: return two elements
Date
Msg-id B35596C2EFF3D2118EE100A0C94B2A60014BFBDE@palamos_nt
Whole thread Raw
In response to return two elements  ("Rodríguez Rodríguez, Pere" <prr@hosppal.es>)
Responses Re: return two elements
List pgsql-general

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

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

"Rodríguez Rodríguez, Pere" <prr@hosppal.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

pgsql-general by date:

Previous
From:
Date:
Subject: Re: how to get sequence list ?
Next
From: Michael Fuhr
Date:
Subject: Re: return two elements