X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5A747475CBC for ; Wed, 2 Apr 2003 09:59:31 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 4322A475CBC for ; Wed, 2 Apr 2003 09:59:00 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h32Ewq2L020951; Wed, 2 Apr 2003 09:58:52 -0500 (EST) To: Gavin Sherry Cc: Peter Eisentraut , Hiroshi Inoue , Bruce Momjian , Neil Conway , PostgreSQL Hackers Subject: Re: updateable cursors & visibility In-reply-to: References: Comments: In-reply-to Gavin Sherry message dated "Thu, 03 Apr 2003 00:52:54 +1000" Date: Wed, 02 Apr 2003 09:58:51 -0500 Message-ID: <20950.1049295531@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/39 X-Sequence-Number: 37529 Gavin Sherry writes: > Regardless of which, we could insert a special case in ExecutePlan() (or > somewhere more appropriate?) to test that the tuple returned from the > lower level ExecTidScan() still satisifies the cursor query. It should be > sufficient to use HeapTupleSatisfies() or some of the logic there in to do > this. I don't think so; you'll need to use EvalPlanQual. This is not different from the situation where a regular UPDATE finds a tuple that is not the latest version of its row. Should I point out that we already have semantics for that behavior, and they depend on the serialization mode? Most of this discussion seems to completely ignore the MVCC semantics we already have for updates/deletes applied to rows that aren't current anymore. ISTM we should stick to that behavior ... regards, tom lane