Re: [GENERAL] Postgres 7.2 - Updating rows in cursor problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
Cc: "Vaclav Kulakovsky" <vaclav(dot)kulakovsky(at)definity(dot)cz>, "Jan Wieck" <JanWieck(at)Yahoo(dot)com>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Postgres 7.2 - Updating rows in cursor problem
Date: 2002-02-14 17:10:53
Message-ID: 9337.1013706653@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> This is a known issue. We should implement INSENSITIVE cursors
> to avoid this behavior. The keyword INSENSITIVE is there but isn't
> used long. I plan to implement this feature as the first step toward
> cross transaction cursors. Saving the xid and commandid in the
> portal or snapshot and restoring them at fetch(move) time would
> solve it.

For the moment I've arranged to save commandId in portals. (xid isn't
needed since we don't have cross-transaction portals ... yet)

It occurs to me though that scanCommandId should not be part of the
xact.c global status at all. It should be stored in heapscan and
indexscan state structs, instead. I have been thinking about trying
to clean up the API for heapscans and indexscans, and maybe I'll see
if that can be done as part of that work.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rishabh Gupta 2002-02-14 17:49:39 data mining or statistical analysis with postgresql
Previous Message Hans-Juergen Schoenig 2002-02-14 17:01:31 Re: Problem with null dates in 7.2

Browse pgsql-hackers by date

  From Date Subject
Next Message Doug McNaught 2002-02-14 17:27:10 Re: Upgrading to 7.2
Previous Message Chris Field 2002-02-14 17:08:42 Re: Upgrading to 7.2

Browse pgsql-patches by date

  From Date Subject
Next Message Jason Tishler 2002-02-15 14:14:46 Re: Cygwin plperl patch
Previous Message Hiroshi Inoue 2002-02-14 16:53:17 Re: [GENERAL] Postgres 7.2 - Updating rows in cursor problem