Re: What is the difference between cmin and cmax

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: 高健 <luckyjackgao(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: What is the difference between cmin and cmax
Date: 2013-07-02 06:15:15
Message-ID: CAKoxK+6Z248ur31PFMv460OagMOaZBVLRkd7k4bDfmXuUdsE4Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jul 2, 2013 at 5:19 AM, 高健 <luckyjackgao(at)gmail(dot)com> wrote:
> Hello:
> I looked into the source code, and I think I now understand it:
> cmin and cmax are same! The documentation is too old now.

Yes, you figured it out.
For short: cmin and cmax are overlapped fields and are used within the
same transaction to identify the command that changed a tuple, so that
in-transaction commands can be ordered and, therefore, tuple
visibility can be calculated.

Luca

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2013-07-02 07:35:23 Re: (Default) Group permissions
Previous Message 高健 2013-07-02 03:19:40 Re: What is the difference between cmin and cmax