Xid Wraparound Defense

Monitor and recover from PostgreSQL transaction ID and multixact wraparound risk: read age(datfrozenxid) per database and age(relfrozenxid) and mxid_age(relminmxid) per table oldest first, alert near 500 million of the roughly 2.1 billion ceiling so a page arrives with weeks of runway, and in an emergency end what blocks freezing before running a manual VACUUM (VERBOSE, INDEX_CLEANUP off) on the oldest tables, never VACUUM FULL and never killing the anti-wraparound worker. Use for "database must be vacuumed within N transactions", "age(datfrozenxid) is 1.6 billion", "anti-wraparound autovacuum won't finish" or "are we about to hit wraparound". Not for table size and dead tuples (vacuum-bloat-triage), a generic live incident (incident-response), sizing for load (capacity-planning) or integer key overflow (integer-key-exhaustion).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit ba3af47dd0

Frequently asked questions

npx get-skill add greenblacked/xid-wraparound-defense