Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group