Re: Questions about update, delete, ctid... - Mailing list pgsql-general

From DANTE Alexandra
Subject Re: Questions about update, delete, ctid...
Date
Msg-id 44CE1B27.1090705@bull.net
Whole thread Raw
In response to Re: Questions about update, delete, ctid...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello Tom, Martijn and List,

Thank you for yours answers !
This point is now closed for me and I can go further in the mecanisms of
VACUUM.

Regards,
Alexandra


Tom Lane wrote:

>DANTE Alexandra <Alexandra.Dante@bull.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
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>
>
>


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Antw: Re: Query questions
Next
From: "A. Kretschmer"
Date:
Subject: Re: Antw: Re: Query questions