pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Ferenc Engard <engard@all.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: pl/pgsql capabilities?
Date: Mon, 1 Jul 2002 08:40:47 -0600
Message-ID: <20020701144047.GB23653@cc.usu.edu> (raw)
In-Reply-To: <3D1F97A1.B4B25B32@all.hu>
References: <3D1F97A1.B4B25B32@all.hu>

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...





view thread (4+ messages)  latest in thread

Message-ID: <20020701144047.GB23653@cc.usu.edu>
Permalink:  ../20020701144047.GB23653@cc.usu.edu/
Also on:    postgresql.org/message-id/20020701144047.GB23653@cc.usu.edu

 · 

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: rmello@cc.usu.edu, engard@all.hu
  Subject: Re: pl/pgsql capabilities?
  In-Reply-To: <20020701144047.GB23653@cc.usu.edu>

* 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