Articles

Transaction ID Wraparound in Postgres | Product Blog • Sentry

PostgreSQL: Documentation: 9.4: Routine Vacuuming

SELECT power(2, 31) - age(datfrozenxid) AS remaining
FROM pg_database
WHERE datname = current_database();