Re: Error in returning setof records - Mailing list pgsql-bugs

From Richard Huxton
Subject Re: Error in returning setof records
Date
Msg-id 4450E052.7070309@archonet.com
Whole thread Raw
In response to Error in returning setof records  ("Anjali Arora" <anjalia@cdac.in>)
List pgsql-bugs
Anjali Arora wrote:
> Hi all,
> when i am returning function as setof record then it will give error
> "ERROR:  set-valued function called in context that cannot accept a set
> CONTEXT:  PL/pgSQL function "gfs_ls" while casting return value to
> function's return type"

This is not a bug - see the manuals for details.

A set returning function is like a table so you need to call it as:
   SELECT * FROM my_set_function();

For general help you might like to try the general/sql mailing lists
rather than the bug tracker.
--
   Richard Huxton
   Archonet Ltd

pgsql-bugs by date:

Previous
From: Paul van der Zwan
Date:
Subject: Re: BUG #2406: Not all systems support SHM_SHARE_MMU
Next
From: "Platonov"
Date:
Subject: BUG #2413: connection refused 0274D/10061