Re: stored procedures and type of returned result. - Mailing list pgsql-sql

From Richard Huxton
Subject Re: stored procedures and type of returned result.
Date
Msg-id 412B1B47.6090202@archonet.com
Whole thread Raw
In response to stored procedures and type of returned result.  (Patrice OLIVER <oliverp21@free.fr>)
List pgsql-sql
Patrice OLIVER wrote:
> 
> Hello, I got this error message :
> 
> ERROR:  set-valued function called in context that cannot accept a set
> CONTEXT:  PL/pgSQL function "lsttable" line 5 at return next

You need to treat set-returning functions as though they are tables.  SELECT * FROM lsttable();
NOT  SELECT lsttable();

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: "Philippe Lang"
Date:
Subject: Re: stored procedures and type of returned result.
Next
From: Bruce Momjian
Date:
Subject: Re: Disable trigger with Postgresql 7.4.x?