Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 18876475B85 for ; Tue, 12 Nov 2002 05:30:18 -0500 (EST) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by postgresql.org (Postfix) with ESMTP id 13A5D475AFA for ; Tue, 12 Nov 2002 05:30:17 -0500 (EST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 18BYJ1-000Nrl-0X; Tue, 12 Nov 2002 10:30:03 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 441E116937; Tue, 12 Nov 2002 10:19:32 +0000 (GMT) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id A132C16917; Tue, 12 Nov 2002 10:19:31 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: dnaren@hss.hns.com, pgsql-sql@postgresql.org Subject: Re: Date: Tue, 12 Nov 2002 10:19:48 +0000 User-Agent: KMail/1.4.3 References: <65256C6F.00287EB4.00@sampark.hss.hns.com> In-Reply-To: <65256C6F.00287EB4.00@sampark.hss.hns.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211121019.49225.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/175 X-Sequence-Number: 10317 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= =20 7.3 there are table functions. Look in the manual for examples with cursors= -=20 also perhaps check Roberto Mello's plpgsql cookbook on=20 techdocs.postgresql.org=20 Table functions might well be documented in the developer's version of the= =20 manual but there are definitely examples in the contrib/ directory of the= =20 source download (of 7.3). I seem to remember an example in the mailing list= s=20 too, so perhaps a check of the archives would be worthwhile. --=20 Richard Huxton