From: Neil Conway <neilc@samurai.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: updateable cursors & visibility
Date: 24 Mar 2003 16:49:19 -0500
Message-ID: <1048542558.421.87.camel@tokyo> (raw)
Folks,
I'd like to implement updateable cursors. I'll be working on just
getting updateable cursors working for relatively simple SELECT queries
(e.g. no joins, aggregates, grouping, user-defined function calls,
etc.). BTW, I believe that's all the SQL spec requires, but I need to
double check that. I'm also planning on only implementing only
INSENSITIVE cursors, and not allowing holdable cursors.
However, I'm a little unsure how tuple visibility should work with
updateable cursors. In particular:
- if the user updates a row X in the cursor, then rewinds the cursor and
fetches X again, should they see the new X or the old X?
- if the user updates a row X in the cursor, and then a query within the
cursor's transaction views X, should the query see new X or old X?
Any comments?
Neil
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-hackers@postgresql.org
Cc: neilc@samurai.com
Subject: Re: updateable cursors & visibility
In-Reply-To: <1048542558.421.87.camel@tokyo>
References: <1048542558.421.87.camel@tokyo>
* 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