pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Patrice OLIVER <oliverp21@free.fr>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: stored procedures and type of returned result.
Date: Tue, 24 Aug 2004 11:41:11 +0100
Message-ID: <412B1B47.6090202@archonet.com> (raw)
In-Reply-To: <412B15B1.5090208@free.fr>
References: <412AFEBC.4060404@free.fr>
	<412B09B4.1080407@archonet.com>
	<412B15B1.5090208@free.fr>

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



view thread (4+ messages)

Message-ID: <412B1B47.6090202@archonet.com>
Permalink:  ../412B1B47.6090202@archonet.com/
Also on:    postgresql.org/message-id/412B1B47.6090202@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, oliverp21@free.fr
  Subject: Re: stored procedures and type of returned result.
  In-Reply-To: <412B1B47.6090202@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox