Re: Select function with set return type

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Select function with set return type
Date: 2008-08-18 11:12:14
Message-ID: 20080818111214.GA7234@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Nacef LABIDI <nacef(dot)l(at)gmail(dot)com> schrieb:

> Hi all,
>
> I am writing some functions with retrun type as a SETOF of a datatype that I
> have defined. How can I test them with a select statement.
> Doing select my_function(); return set valued function called in context that
> cannot accept a set

Try 'select * from my_function();'

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jackson Pauls 2008-08-18 12:28:27 COPY TO with FORCE QUOTE *
Previous Message Nacef LABIDI 2008-08-18 11:03:07 Select function with set return type