Transaction ID modulo

Started by PG Bug reporting formabout 5 years ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/routine-vacuuming.html
Description:

Hello,

transaction ID modulo is not correct.

The sentence "Normal XIDs are compared using modulo-2^32 arithmetic" should
be "Normal XIDs are compared using modulo-2^31 arithmetic"

#2Bruce Momjian
bruce@momjian.us
In reply to: PG Bug reporting form (#1)
Re: Transaction ID modulo

On Thu, Feb 18, 2021 at 01:54:37PM +0000, PG Doc comments form wrote:

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/routine-vacuuming.html
Description:

Hello,

transaction ID modulo is not correct.

The sentence "Normal XIDs are compared using modulo-2^32 arithmetic" should
be "Normal XIDs are compared using modulo-2^31 arithmetic"

Uh, we use full 32-bit values that wrap around; the top bit is just
another bit to us. I think the docs are correct.

--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com

The usefulness of a cup is in its emptiness, Bruce Lee