Re: Questions about update, delete, ctid...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: DANTE Alexandra <Alexandra(dot)Dante(at)bull(dot)net>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Questions about update, delete, ctid...
Date: 2006-07-31 12:48:39
Message-ID: 13663.1154350119@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

DANTE Alexandra <Alexandra(dot)Dante(at)bull(dot)net> writes:
> - during a SELECT query on a tuple just updated and commited, does
> the executor first detect the old tuple and then via the c_tid link go
> to the new version of the tuple ? or go directly to the new version ?

Neither. SELECT doesn't care about update relationships, it just
returns whatever row version is current according to its snapshot.
It's only UPDATE/DELETE that are constrained to act on the most
current version of each row.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christian Rengstl 2006-07-31 13:32:19 Query questions
Previous Message Tom Lane 2006-07-31 12:46:28 Re: Questions about update, delete, ctid...