pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: dnaren@hss.hns.com
To: pgsql-sql@postgresql.org
Subject: Re:
Date: Tue, 12 Nov 2002 10:19:48 +0000
Message-ID: <200211121019.49225.dev@archonet.com> (raw)
In-Reply-To: <65256C6F.00287EB4.00@sampark.hss.hns.com>
References: <65256C6F.00287EB4.00@sampark.hss.hns.com>

On Tuesday 12 Nov 2002 7:22 am, dnaren@hss.hns.com wrote:
> HI,
>
> Can someone pls help us with the following problem?
>
> Any help would be appreciated.
>
>  Is stored procedures will return muliple rows in postgresql.
>  If so a sample example is needed.

With current versions of PG, look into returning a cursor from plpgsql. For 
7.3 there are table functions. Look in the manual for examples with cursors - 
also perhaps check Roberto Mello's plpgsql cookbook on 
techdocs.postgresql.org 

Table functions might well be documented in the developer's version of the 
manual but there are definitely examples in the contrib/ directory of the 
source download (of 7.3). I seem to remember an example in the mailing lists 
too, so perhaps a check of the archives would be worthwhile.

-- 
  Richard Huxton



view thread (2+ messages)

Message-ID: <200211121019.49225.dev@archonet.com>
Permalink:  ../200211121019.49225.dev@archonet.com/
Also on:    postgresql.org/message-id/200211121019.49225.dev@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, dnaren@hss.hns.com
  Subject: Re:
  In-Reply-To: <200211121019.49225.dev@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