We currently use postgres 8.1.x and run the following queryperiodically to check for XID wraparound proximity.
select datname, age(datfrozenxid) from pg_database
What is the equivalent check in 8.4
Thank you
Sriram