Re: typo: XIDs are actually compared using modulo-2^32 arithmetic

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gianni Ciolli <gianni(dot)ciolli(at)2ndquadrant(dot)it>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: typo: XIDs are actually compared using modulo-2^32 arithmetic
Date: 2013-12-12 17:41:26
Message-ID: 22712.1386870086@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gianni Ciolli <gianni(dot)ciolli(at)2ndquadrant(dot)it> writes:
> It seems there is a typo here:
> http://www.postgresql.org/docs/devel/static/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND
> where we say that we compare XIDs using arithmetic modulo 2^31, which
> should instead be 2^32 (as it is with uint32, e.g. xid_age).

[ thinks about that for awhile... ] Yeah, I think you're right.
Patch pushed, thanks!

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabrízio de Royes Mello 2013-12-12 17:42:55 Re: Time-Delayed Standbys
Previous Message Simon Riggs 2013-12-12 17:39:26 Re: Time-Delayed Standbys