pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gavin Sherry <swm@linuxworld.com.au>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Neil Conway <neilc@samurai.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: updateable cursors & visibility
Date: Wed, 02 Apr 2003 09:58:51 -0500
Message-ID: <20950.1049295531@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0304022319260.11688-100000@linuxworld.com.au>
References: <Pine.LNX.4.21.0304022319260.11688-100000@linuxworld.com.au>

Gavin Sherry <swm@linuxworld.com.au> 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




view thread (34+ messages)

Message-ID: <20950.1049295531@sss.pgh.pa.us>
Permalink:  ../20950.1049295531@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20950.1049295531@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, swm@linuxworld.com.au, peter_e@gmx.net, Inoue@tpf.co.jp, pgman@candle.pha.pa.us, neilc@samurai.com
  Subject: Re: updateable cursors & visibility
  In-Reply-To: <20950.1049295531@sss.pgh.pa.us>
  References: <Pine.LNX.4.21.0304022319260.11688-100000@linuxworld.com.au> <20950.1049295531@sss.pgh.pa.us>

* 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