pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedPL/pgSQL & Cursors
2+ messages / 2 participants
[nested] [flat]
* PL/pgSQL & Cursors
@ 2000-04-07 14:46 Dwelle, Timothy <TDwelle@xperts.com>
2000-04-09 07:57 ` Re: PL/pgSQL & Cursors Jan Wieck <wieck@debis.com>
0 siblings, 1 reply; 2+ messages in thread
From: Dwelle, Timothy @ 2000-04-07 14:46 UTC (permalink / raw)
To: pgsql-sql
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
Does this mean there is no way to use cursors inside a
PL/pgSQL function?
Any help would be appreciated.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PL/pgSQL & Cursors
2000-04-07 14:46 PL/pgSQL & Cursors Dwelle, Timothy <TDwelle@xperts.com>
@ 2000-04-09 07:57 ` Jan Wieck <wieck@debis.com>
0 siblings, 0 replies; 2+ messages in thread
From: wieck@debis.com @ 2000-04-09 07:57 UTC (permalink / raw)
To: Dwelle, Timothy <TDwelle@xperts.com>; +Cc: pgsql-sql
[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) #
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-04-09 07:57 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-04-07 14:46 PL/pgSQL & Cursors Dwelle, Timothy <TDwelle@xperts.com>
2000-04-09 07:57 ` Jan Wieck <wieck@debis.com>
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