Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Error in returning setof records



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group