Re: SETOF

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fernando <fernando(at)icreativa(dot)com(dot)mx>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SETOF
Date: 2003-03-04 18:10:56
Message-ID: 27664.1046801456@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Fernando <fernando(at)icreativa(dot)com(dot)mx> writes:
> I am using Postgresql version 7.2.2

> CREATE FUNCTION ejem1(varchar) RETURNS SETOF to varchar as'
> SELECT names from mi_tabla WHERE city = $1; '
> language ' SQL ';

It's difficult to do anything very useful with functions returning sets
in 7.2. Update to 7.3 and try something like:
select * from ejem1('cityname');

regards, tom lane

PS: it's not really necessary to post the same question in three
different PG lists. Especially not one at a time.

In response to

  • SETOF at 2003-03-04 16:58:51 from Fernando

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-03-04 18:32:29 Re: foreign key constraint
Previous Message Tom Lane 2003-03-04 17:45:49 Re: plpgsql mixing variable in SELECT INTO ?