X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 016B14762E9 for ; Mon, 24 Mar 2003 16:49:47 -0500 (EST) Received: from bob.samurai.com (bob.samurai.com [205.207.28.75]) by postgresql.org (Postfix) with ESMTP id A800A4762A2 for ; Mon, 24 Mar 2003 16:49:41 -0500 (EST) Received: from DU150.N224.ResNet.QueensU.CA (DU150.N224.ResNet.QueensU.CA [130.15.224.150]) by bob.samurai.com (Postfix) with ESMTP id 9F0831DA1 for ; Mon, 24 Mar 2003 16:49:42 -0500 (EST) Subject: updateable cursors & visibility From: Neil Conway To: PostgreSQL Hackers Content-Type: text/plain Organization: Message-Id: <1048542558.421.87.camel@tokyo> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 24 Mar 2003 16:49:19 -0500 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-12.1 required=5.0 tests=BAYES_10,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/1047 X-Sequence-Number: 37293 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