Re: composite types

From: Steve Manes <smanes(at)magpie(dot)com>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>, pgsql-general(at)postgresql(dot)org
Subject: Re: composite types
Date: 2004-04-20 16:47:22
Message-ID: 4085541A.3010004@magpie.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan Sergio Borgonovo wrote:

> I've found this
> http://archives.postgresql.org/pgsql-general/2001-03/msg01459.php
> but I'd like to avoid to declare a table just for a temp.
>
> pseudocode follow
>
> declare struct pippo(
> integer a;
> varchar(8) b;
> )
>
> create or replace function functiontest( ) returns pippo
> as '
> declare
> integer tempa;
> varchar(8) tempb;
>

I think you might want to look at SRFs (Set Returning Functions). Here
are a couple of links:

http://techdocs.postgresql.org/guides/SetReturningFunctions
http://www.varlena.com/varlena/GeneralBits/26.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-04-20 16:56:20 Re: wishlist: dynamic log volume control
Previous Message Marc G. Fournier 2004-04-20 16:30:59 Re: [OT] Tom's/Marc's spam filters?