Active Session History for PostgreSQL — wait event sampling with zero bloat (pg_cron + PGQ-style partition rotation)
pg_ash is a pure SQL tool that samples database activity every second to reveal historical performance issues like top waits and queries in Postgres.
How It Works
You feel your app slowing down and wonder what happened earlier when you weren't watching.
Run a quick setup in your database to start recording activity snapshots without any hassle.
Switch on the recorder to grab a picture of what's running every second.
Pull up charts showing top slowdowns, busy queries, and wait patterns from the last hour.
Examine timelines, specific queries, or past incidents to understand exactly what went wrong.
Use your insights to tune queries or settings, and enjoy a smoother, faster database.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.