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

Re: returning multiple result sets from a stored procedure

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: John Adams <john_adams_mail(at)yahoo(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: returning multiple result sets from a stored procedure
Date: 2010-09-02 23:17:00
Message-ID: 1283469376-sup-7696@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-hackers
Excerpts from John Adams's message of jue sep 02 18:25:45 -0400 2010:
> I noticed in postgres you cannot return multiple result sets from a stored 
> procedure (surprisingly as it looks like a very good dbms). 

If you're really intent about doing this, you can emulate it by
returning a set of refcursors.

-- 
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-hackers by date

Next:From: Fujii MasaoDate: 2010-09-03 02:02:25
Subject: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)
Previous:From: John AdamsDate: 2010-09-02 22:25:45
Subject: returning multiple result sets from a stored procedure

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group