Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1QHXhx08855 for ; Mon, 26 Feb 2001 12:33:43 -0500 (EST) (envelope-from qdong@swbell.net) Received: from voyager ([64.217.226.77]) by mta4.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with SMTP id <0G9D001XUK2D7N@mta4.rcsntx.swbell.net> for pgsql-sql@postgresql.org; Mon, 26 Feb 2001 11:18:13 -0600 (CST) Date: Mon, 26 Feb 2001 11:18:12 -0600 From: Qiqi Dong Subject: Re: Function to return recordset To: pgsql-sql@postgresql.org Reply-to: Qiqi Dong Message-id: <005701c0a018$19673f70$5a41a8c0@frontier> MIME-version: 1.0 X-Mailer: Microsoft Outlook Express 5.50.4522.1200 Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: 7bit X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 References: <97d6tq$meh$1@news.tht.net> <002e01c0a007$72e06e20$5a41a8c0@frontier> <003701c0a00a$4dca6200$1001a8c0@archonet.com> X-Priority: 3 X-Archive-Number: 200102/404 X-Sequence-Number: 1609 It would be nice to have this feature in next release. I cannot port my applications to PostgreSQL without it. All my data objects depend on recordset returned from stored procedures. Could someone consider it for 7.1? Thanks. ----- Original Message ----- From: "Richard Huxton" To: "Qiqi Dong" ; Sent: Monday, February 26, 2001 9:39 AM Subject: Re: [SQL] Function to return recordset > From: "Qiqi Dong" > > > Hi, > > > > I need help! How can I get either sql or plpgsql function to return > > recordset? > > > > Thanks, > > Qiqi > > If you have a table foo you can define your function with "returns foo" but > you cannot use this like: > > select foo_function('x'); > > At present it is only useful for use by other functions (I believe). I think > Tom said this is on the developer todo list though, so sometime after 7.1 it > should be possible. > > - Richard Huxton >