Re: composite types

Поиск
Список
Период
Сортировка
От Steve Manes
Тема Re: composite types
Дата
Msg-id 4085541A.3010004@magpie.com
обсуждение исходный текст
Ответ на composite types  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список 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




В списке pgsql-general по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: wishlist: dynamic log volume control
Следующее
От: Jan Wieck
Дата:
Сообщение: Slony-I heading for release