Re: Use of cursor in PLPGSQL function

From: Jan Wieck <janwieck(at)yahoo(dot)com>
To: Mourad EL HADJ MIMOUNE <mimoune(at)ensma(dot)fr>
Cc: PostgreSQL-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Use of cursor in PLPGSQL function
Date: 2001-12-05 20:48:56
Message-ID: 200112052048.fB5Kmur01873@saturn.jw.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mourad EL HADJ MIMOUNE wrote:
> Hi,
> I want to use cursors in PLPGSQL functions but without success.
> I downloaded a file gram.y to update PLPGSQL parser.
> I would know how can I make this update, and if this will allows me to use
> cursors in plpgsql functions.
> Thanks for your help.
> Mourad.

There is no way to use cursors inside of PL/pgSQL functions
before Postgres version 7.2. It's not just the syntax parsed
by the function handler. There have been enhancements in the
server, namely cursor support in SPI, that make it possible
at all.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2001-12-05 20:54:42 Re: Can't login/createdb
Previous Message Andrew Sullivan 2001-12-05 20:40:17 Re: Sparc v Intel