Re: return two elements - Mailing list pgsql-general

From Tom Lane
Subject Re: return two elements
Date
Msg-id 26257.1118070578@sss.pgh.pa.us
Whole thread Raw
In response to return two elements  ("Rodríguez Rodríguez, Pere" <prr@hosppal.es>)
List pgsql-general
=?ISO-8859-1?Q?=22Rodr=EDguez_Rodr=EDguez=2C_Pere=22?= <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: Franco Bruno Borghesi
Date:
Subject: Re: return two elements
Next
From: "Franco Bruno Borghesi"
Date:
Subject: Re: return two elements