aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-12-12 12:39:54 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-12-12 12:39:54 -0500
commitb57947aa9cacaac58b4baa7b30306ccf803d6c88 (patch)
tree88d21b596cccbcfa873ad6713878ed8b0105ed67 /src/backend
parent27902bc9164d227cbdf1242de218edeaf8cd9f7f (diff)
downloadpostgresql-b57947aa9cacaac58b4baa7b30306ccf803d6c88.tar.gz
postgresql-b57947aa9cacaac58b4baa7b30306ccf803d6c88.zip
Fix ancient docs/comments thinko: XID comparison is mod 2^32, not 2^31.
Pointed out by Gianni Ciolli.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/access/transam/transam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/transam.c b/src/backend/access/transam/transam.c
index 3cc0096d92a..b92a27bff36 100644
--- a/src/backend/access/transam/transam.c
+++ b/src/backend/access/transam/transam.c
@@ -301,7 +301,7 @@ TransactionIdPrecedes(TransactionId id1, TransactionId id2)
{
/*
* If either ID is a permanent XID then we can just do unsigned
- * comparison. If both are normal, do a modulo-2^31 comparison.
+ * comparison. If both are normal, do a modulo-2^32 comparison.
*/
int32 diff;