Function return tuples - Mailing list pgsql-general

From Werachart Jantarataeme
Subject Function return tuples
Date
Msg-id Pine.GSO.3.93.990508084157.15494A-100000@pegasus2
Whole thread Raw
List pgsql-general
I am start programming on Postgres and looking for how to return a set of
tuples for a function;

As see on man pages of "create_function", there is an example of function
hobbies which return "set of HOBBIES".

example:
 create function hobbies (EMP) returns set of HOBBIES
          as 'select (HOBBIES.all) from HOBBIES
               where $1.name = HOBBIES.person'
          language 'sql'
result:
  ERROR:  parser: parse error at or near "set".

An on last line of the man pages said "C functions cannot return a set of
values." Is there this fix on lastest version 6.5beta1?

WChart.


pgsql-general by date:

Previous
From: Carlos Peralta Ramirez
Date:
Subject: Functions for arrays !!!!
Next
From: "Brett W. McCoy"
Date:
Subject: Re: [GENERAL] accessing PostgreSQL DB via PERL