Re: set returning functions in v7.3

From: Brandon Craig Rhodes <brandon(at)oit(dot)gatech(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: set returning functions in v7.3
Date: 2003-02-13 18:25:15
Message-ID: w6heb8t4vo.fsf@guinness.ts.gatech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Együd Csaba <csegyud(at)freemail(dot)hu> writes:

> I have a problem with "set returning functions".
>
> create or replace function getgroups() returns setof t_groups as '
> select * from t_groups;
> ' language 'sql';
>
> in the this way:
>
> select * from getgroups();
>
> It should have returned with all the rows from t_groups. It did
> not. Where is the problem?

This works for me with the most recent version of Postgresql (7.3.2);
what version are you using? Are you sure the table is not empty?

--
Brandon Craig Rhodes http://www.rhodesmill.org/brandon
Georgia Tech brandon(at)oit(dot)gatech(dot)edu

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Welty 2003-02-13 18:47:09 Re: arrays and pl/pgsql?
Previous Message Együd Csaba 2003-02-13 18:24:54 set returning functions in v7.3