{
 "schema_version": 1,
 "generated": "2026-10-20",
 "repo": "pgrundev/pgbot",
 "name": "pgbot",
 "owner": "pgrundev",
 "slug": "pgrundev-pgbot",
 "github": "https://github.com/pgrundev/pgbot",
 "what": "pgbot is a read-only Go command-line tool that reads PostgreSQL's own statistics views and prints a findings-first health report with changes since the last run.",
 "why": "",
 "language": "Go",
 "requirements": [
  "A PostgreSQL server version 14 to 18 that you can reach over the network",
  "A login role with the pg_monitor role and no write grants (pgbot init generates the setup SQL)",
  "The pgbot binary, installed with the curl install script or npx @pgbot/cli",
  "Optional: pg_stat_statements for the queries section, and hypopg on PostgreSQL 16+ for advise"
 ],
 "audience_note": "Database engineers, DevOps staff, and AI agents that need structured PostgreSQL health findings without deploying a monitoring stack.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Software and DevOps",
 "url": "https://dedupedai.com/use-cases/pgrundev-pgbot/",
 "use_case_count": 5,
 "use_cases": [
  {
   "id": "pgrundev-pgbot--triage-slow-postgres-in-ten-seconds",
   "title": "Triage a slow PostgreSQL database in ten seconds",
   "best": true,
   "url": "https://dedupedai.com/use-cases/pgrundev-pgbot/triage-slow-postgres-in-ten-seconds/",
   "json": "https://dedupedai.com/use-cases/u/pgrundev-pgbot/triage-slow-postgres-in-ten-seconds.json"
  },
  {
   "id": "pgrundev-pgbot--find-queries-eating-database-time",
   "title": "Find the queries that eat the most database time",
   "best": false,
   "url": "https://dedupedai.com/use-cases/pgrundev-pgbot/find-queries-eating-database-time/",
   "json": "https://dedupedai.com/use-cases/u/pgrundev-pgbot/find-queries-eating-database-time.json"
  },
  {
   "id": "pgrundev-pgbot--spot-unused-and-missing-indexes",
   "title": "Spot unused indexes and likely missing indexes",
   "best": false,
   "url": "https://dedupedai.com/use-cases/pgrundev-pgbot/spot-unused-and-missing-indexes/",
   "json": "https://dedupedai.com/use-cases/u/pgrundev-pgbot/spot-unused-and-missing-indexes.json"
  },
  {
   "id": "pgrundev-pgbot--gate-schema-migrations-in-ci",
   "title": "Gate schema migrations in CI with a Postgres lint",
   "best": false,
   "url": "https://dedupedai.com/use-cases/pgrundev-pgbot/gate-schema-migrations-in-ci/",
   "json": "https://dedupedai.com/use-cases/u/pgrundev-pgbot/gate-schema-migrations-in-ci.json"
  },
  {
   "id": "pgrundev-pgbot--let-claude-code-read-postgres-findings",
   "title": "Let Claude Code read PostgreSQL findings over MCP",
   "best": false,
   "url": "https://dedupedai.com/use-cases/pgrundev-pgbot/let-claude-code-read-postgres-findings/",
   "json": "https://dedupedai.com/use-cases/u/pgrundev-pgbot/let-claude-code-read-postgres-findings.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
