Re: nested transactions

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Kevin Brown <kevin(at)sysexperts(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: nested transactions
Date: 2002-12-10 03:23:28
Message-ID: 200212100323.gBA3NST13569@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kevin Brown wrote:
> My question is: how do you see cursors working with nested
> transactions?
>
> Right now you can't do cursors outside of transactions.
> Subtransactions would complicate things a bit:
>
> BEGIN;
> DECLARE CURSOR x ...
> BEGIN
> (is cursor x visible here? What are the implications of using it if
> it is?)
> ...
> COMMIT;
> ...
> COMMIT;
>
>
> Would we only allow cursors within the innermost transactions? If we
> allow them anywhere else, why retain the requirement that they be used
> within transactions at all?

I talked to Tom and he feels it will be too hard to rollback a
subtransaction that affects cursors so we will disable use of cursors in
subtransactions, at least in the first implementation.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2002-12-10 03:48:13 Re: proposal: array utility functions phase 1
Previous Message Kevin Brown 2002-12-10 03:20:29 Re: nested transactions