Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id C6485475D2F for ; Mon, 1 Jul 2002 10:41:59 -0400 (EDT) Mailbox-Line: From rmello@cc.usu.edu Mon Jul 1 10:41:59 2002 Received: from brasileiro.net (slxwy.dorms.usu.edu [129.123.236.160]) by postgresql.org (Postfix) with ESMTP id 10A7E47591E for ; Mon, 1 Jul 2002 10:41:00 -0400 (EDT) Received: from roberto by brasileiro.net with local (Exim 3.35 #1 (Debian)) id 17P2MB-0006GA-00; Mon, 01 Jul 2002 08:40:47 -0600 Date: Mon, 1 Jul 2002 08:40:47 -0600 From: Roberto Mello To: Ferenc Engard Cc: pgsql-sql@postgresql.org Subject: Re: pl/pgsql capabilities? Message-ID: <20020701144047.GB23653@cc.usu.edu> References: <3D1F97A1.B4B25B32@all.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <3D1F97A1.B4B25B32@all.hu> User-Agent: Mutt/1.3.28i X-message-flag: Please consider using an e-mail program other than Outlook. It's insecure. X-Spam-Status: No, hits=-3.5 required=5.0 tests=IN_REP_TO,SUBJ_ENDS_IN_Q_MARK version=2.30 X-Spam-Level: X-Archive-Number: 200207/7 X-Sequence-Number: 8386 On Mon, Jul 01, 2002 at 01:43:29AM +0200, Ferenc Engard wrote: > Hi all, > > A long time ago (at version 6.3.2 or what :) I have asked, but maybe > since it changed: can I use the procedural languages (any of them) to > return a table- (or view-) like output, just like in Interbase, for > example? E.g., if I have a metamodel and I want to write functions what > perform complex computations and queries, can they return the result > (which can be of many rows) to the client? As of PG 7.2 you can, by returning a cursor: http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html -Roberto -- +----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU - http://www.brasileiro.net/ http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer I wonder if Singapore has any computer pirateers or hackers...