pgbot is a Go-based PostgreSQL diagnostic utility designed to provide actionable database performance insights for developers, administrators, and AI agents. It evaluates database health through deterministic SQL-based analysis rather than relying on language model predictions. Diagnostic reports examine query performance, index utilization, autovacuum activity, replication, connections, and locking behavior. Locally stored baselines enable comparisons between successive inspections to identify performance regressions. Optional AI integration translates diagnostic findings into natural language explanations and recommendations. Structured JSON output and an integrated MCP server facilitate automated analysis. The application operates through read-only database permissions and requires no persistent monitoring infrastructure. It supports Windows, macOS, and Linux.
Features
- Deterministic PostgreSQL health assessments with categorized findings and comprehensive diagnostic reports
- Detailed query performance analysis covering execution times, call frequencies, and resource consumption
- Index utilization and autovacuum diagnostics with table statistics and transaction wraparound risk assessment
- Persistent local baselines for identifying database performance changes and emerging operational issues
- Optional AI-generated explanations and recommendations based on verified database diagnostic findings
- Integrated MCP server and versioned JSON output for automated analysis and agent-assisted troubleshooting