Re: Re: have trouble understanding xmin and xmax with update operations from two different sessions

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: rajan <vgmonnet(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: have trouble understanding xmin and xmax with update operations from two different sessions
Date: 2017-07-04 17:32:35
Message-ID: CAMkU=1zv-aDKyOJcsh5cu1bLSVVeDQCxKDMvPUN_q34N1QO7GQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 3, 2017 at 10:39 AM, rajan <vgmonnet(at)gmail(dot)com> wrote:

> Thanks, Jeff.
>
> Now I am going back to my old question.
>
> Even though *Session 2* fails to update with UPDATE 0 message, its txid is
> saved in xmax of updated(by *Session 1*) tuple.
>
> As it becomes an old txid, how come new txids are able to view it?
>

The database can see everything. That is its job. It constructs the
principles of ACID out of non-ACID components. But once you use
pageinspect or select the system columns mxin and xmax, you start to peek
through that illusion.

Cheers,

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Moreno Andreo 2017-07-04 17:57:11 Re: [SPAM] Re: [SPAM] Re: Invalid field size
Previous Message Tom Lane 2017-07-04 17:28:32 Re: [SPAM] Re: [SPAM] Re: Invalid field size