aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-12-12 12:39:57 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-12-12 12:39:57 -0500
commitfcff4bd312bd70bfa01295a7c5e4db959ae105c8 (patch)
treecde72b370bb158cb949cae724b752b3e044defb1 /src
parent9c9a1f2ebb00f96f1164f01006ab9861b36f1ab1 (diff)
downloadpostgresql-fcff4bd312bd70bfa01295a7c5e4db959ae105c8.tar.gz
postgresql-fcff4bd312bd70bfa01295a7c5e4db959ae105c8.zip
Fix ancient docs/comments thinko: XID comparison is mod 2^32, not 2^31.
Pointed out by Gianni Ciolli.
Diffstat (limited to 'src')
-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 a7214cf34de..833f3cd1cc7 100644
--- a/src/backend/access/transam/transam.c
+++ b/src/backend/access/transam/transam.c
@@ -304,7 +304,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;