- Home
- Skills
- Data & Databases
- pg-bloat-detective: Postgres Bloat and VACUUM Diagnosis
pg-bloat-detective: Postgres Bloat and VACUUM Diagnosis
Diagnose Postgres table and index bloat, find what is blocking VACUUM, and get the cheapest fix with PID and query evidence. Read-only, works with the pg-bloat-detective MCP server.
Free
Works with the AI Agents you already use
About this skill
Teaches your agent to use the open-source pg-bloat-detective tool (MIT, on PyPI and the official MCP registry) to diagnose PostgreSQL bloat without writing to your database.
What it does
- Collects read-only snapshots (read-only transactions, 5s statement timeout) and returns one verdict per table or index.
- Table verdicts: normal, vacuum-starved, blocked by an idle transaction, replication slot, prepared transaction or active transaction, and needs-rewrite.
- Index verdicts: index-bloated (needs REINDEX) and index-unused (DROP candidate, confirm with pg_stat_statements first).
- Names the PID, query and xmin age holding VACUUM back, and gives the matching fix.
How it works
The skill walks your agent through installing the tool (pip install pg-bloat-detective), running the bloat-mcp server, and using its five tools: bloat_check, bloat_collect, bloat_timeline, bloat_blockers and bloat_live_diagnose. It never runs fixes for you. It shows the statement and the evidence and you decide.
Works with Postgres 12-17 on RDS, Neon, Supabase or self-hosted, per the project README. Source: https://github.com/r69shabh/pg-bloat-detective
Requires Python environment and pg-bloat-detective package. Default 1GB guard on large index scans. Needs pgstattuple extension for exact bloat metrics. Read-only access only.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
Requires