Re: SETOF (was: Function example returning more then 1 - Mailing list pgsql-general

From Darko Prenosil
Subject Re: SETOF (was: Function example returning more then 1
Date
Msg-id 200302271809.08204.darko.prenosil@finteh.hr
Whole thread Raw
In response to Re: SETOF (was: Function example returning more then 1  (Kolus Maximiliano <Kolus.maximiliano@bcr.com.ar>)
List pgsql-general
On Thursday 27 February 2003 13:56, Kolus Maximiliano wrote:
> >     You can't return more than one return value from function, but that
> > value can be of composite type.For example :"setof text" or "setof
> > record" are such types.
>
>     Can you use functions returning "setof"s as if they were "normal"
> selects?.
>
>     I saw that setof takes a type or table as an argument. What if what
> i want to return is not in a table schema, can i do something like "setof
> (blah inet, blah2 varchar(256))"?


SETOF RECORD as shown at :
    http://developer.postgresql.org/docs/postgres/sql-select.html

or custom declared composite type:
    http://developer.postgresql.org/docs/postgres/sql-createtype.html

pgsql-general by date:

Previous
From: Diogo de Oliveira Biazus
Date:
Subject: Problems with pgxml and encoding.
Next
From: Tom Gilbert
Date:
Subject: initdb hangs even though ipc-daemon is running?