From: wieck@debis.com
To: Dwelle, Timothy <TDwelle@xperts.com>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: PL/pgSQL & Cursors
Date: Sun, 9 Apr 2000 09:57:57 +0200 (CEST)
Message-ID: <m12eCbV-0003kyC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <0C95935DA0D5D3118E9800A0C9824CD02B8A19@mail.xperts.com>
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I have been playing around with the PL/pgSQL stuff, and I have
> been having trouble getting cursors to work inside my PL/pgSQL
> functions. Reading through the documentation, I see that:
>
> (1) cursors must occur inside a transaction, and
> (2) PL/pgSQL functions cannot start or end a transaction
Maybe it's only the parser of PL/pgSQL. But AFAIK there are
also problems with using named portals over SPI (what a
cursor is).
There are other things I want to do on PL/pgSQL after 7.0 is
out. So I'll give it a try then.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck@debis.com (Jan Wieck) #
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: wieck@debis.com, TDwelle@xperts.com
Subject: Re: PL/pgSQL & Cursors
In-Reply-To: <m12eCbV-0003kyC@orion.SAPserv.Hamburg.dsh.de>
References: <0C95935DA0D5D3118E9800A0C9824CD02B8A19@mail.xperts.com> <m12eCbV-0003kyC@orion.SAPserv.Hamburg.dsh.de>
* 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