pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: FETCH ... INTO in PL/pgSQL
Date: Thu, 15 Mar 2001 16:44:38 -0500 (EST)
Message-ID: <200103152144.QAA04163@jupiter.jw.home> (raw)

Josh Berkus wrote:
> Tom, Bruce,
>
>    Is there any way to make use of the contents of a cursor in a PL/pgSQL
> function?  FETCH ... INTO isn't supported, according to the docs.  Can I
> use the dot notation, or something similar?

    PL/pgSQL  doesn't  support cursors at all. That's basically a
    fault of the SPI manager because  every  internal  DB  access
    from  withing PL/pgSQL is done via SPI and that beast doesn't
    support cursors. As said, I want to work on that for 7.2.


Jan

--

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


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




view thread (2+ messages)

Message-ID: <200103152144.QAA04163@jupiter.jw.home>
Permalink:  ../200103152144.QAA04163@jupiter.jw.home/
Also on:    postgresql.org/message-id/200103152144.QAA04163@jupiter.jw.home

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: JanWieck@Yahoo.com
  Subject: Re: FETCH ... INTO in PL/pgSQL
  In-Reply-To: <200103152144.QAA04163@jupiter.jw.home>
  References: <200103152144.QAA04163@jupiter.jw.home>

* 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