Re: Record with a field consisting of table rows - Mailing list pgsql-general

From Alban Hertroys
Subject Re: Record with a field consisting of table rows
Date
Msg-id 33CD092E-3888-486C-A692-F32833143771@solfertje.student.utwente.nl
Whole thread Raw
In response to Re: Record with a field consisting of table rows  (Jon Smark <jon.smark@yahoo.com>)
List pgsql-general
On 16 Jan 2011, at 17:40, Jon Smark wrote:

> Again, you're making it sound like I'm requesting something exotic,
> while any language with a modern type system allows this and much
> more without blinking.  In Ocaml, for example, the return type 'page_t'
> of my function could be defined as follows:
>
> type user_t = { uid: int; name: string; age: int; }
> type page_t = int * user_t list

That's the refcursor option I gave you earlier.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4d33222411702065417953!



pgsql-general by date:

Previous
From: Mag Gam
Date:
Subject: database slowdown
Next
From: "Andrus Moor"
Date:
Subject: Re: How to generate unique invoice numbers for each day