Change behavior of (m)xid_age - Mailing list pgsql-hackers

From Jim Nasby
Subject Change behavior of (m)xid_age
Date
Msg-id 5627CC83.4010901@BlueTreble.com
Whole thread Raw
Responses Re: Change behavior of (m)xid_age  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Currently, xid_age() returns INT_MAX for a permanent xid. The comment in 
the function that 'Permanent XIDs are always infinitely old' may be 
technically correct, but returning INT_MAX is a useless behavior because 
it actually makes it look like that XID is in immediate wraparound 
danger. I think we should change it to return either 0, -1, or INT_MIN. 
To me, 0 makes the most sense for monitoring relfrozenxid.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: COPY FREEZE and PD_ALL_VISIBLE
Next
From: Jim Nasby
Date:
Subject: Re: Freeze avoidance of very large table.