✓ Works 100% in your browser — no download required.Engineering & DevOps$0 Local-Only Safe

PostgreSQL Dead-Tuple Bloat, Autovacuum Cost-Limit & XID Freeze Guard

Calculates hot-table dead-tuple generation vs autovacuum_vacuum_cost_limit I/O throughput and relfrozenxid age locally so 2-billion-transaction XID wraparound shutdowns never occur.

Run Workflow in Browser →Run via /api/v1 Clearinghouse

Governed Workflow Steps (3)

  1. 1. Read pg_stat_user_tables Dead

    Read pg_stat_user_tables Dead Tuples, XID Burn/Sec & Vacuum Cost Delay: consume [pgTableStats] via ingest.local_pg_vacuum_stats_loader to emit [vacuumInputs]. Verify invariant: vacuumInputs.txBurnPerSec > 0.

  2. 2. Solve Required Vacuum Cost-Limit

    Solve Required Vacuum Cost-Limit MB/s, Worker Count & Days-to-Wraparound: consume [vacuumInputs] via vault.vault-postgres-autovacuum-xid-wraparound-freeze to emit [recommendedCostLimit, daysToXidFreezeEmergency, vacuumKeepsPace]. Verify invariant: vacuumKeepsPace === true && daysToXidFreezeEmergency > 30.

  3. 3. Emit Per-Table ALTER TABLE

    Emit Per-Table ALTER TABLE Autovacuum Storage Parameter Script: consume [recommendedCostLimit] via artifact.local_autovacuum_sql_emitter to emit [alterTableSql]. Verify invariant: alterTableSql.includes("autovacuum_vacuum_cost_limit").

Related Engineering & DevOps Workflows

PR Diff → Line-Referenced Security & Risk Brief
Audit code diffs locally for auth bypass, injection, concurrency bugs, and missing tests w
Outage Timeline → Blameless Postmortem & Jira
Synthesize incident chat logs into a blameless 5-Whys postmortem and gate Jira follow-up c
Merged Commits → Release Notes & GitHub Gate
Group commits into customer-readable release notes with breaking-change alerts and gated p
Lockfile CVE Scan → Patch Priority Matrix
Triage advisory lists by real reachability and CVSS severity to eliminate false-positive u
On-Call Alert Log → Noise Reduction & Runbook Map
Analyze weekly pager exports to surface flapping alerts, threshold fixes, and missing auto
Design RFC Notes → Structured ADR & Rollback Plan
Turn rough architecture notes into a formal ADR covering trade-offs, failure modes, and ro