正在打开每日关注
正在打开每日关注
用只读诊断与本地终端,把 PostgreSQL 健康、查询和索引问题交给人和 Agent 共同处理。
https://t.co/rbsinUJrsG + https://t.co/ii8QrPI9YP almost crossed 1,000 GitHub stars combined in just two weeks! ⭐️⭐️⭐️⭐️ Two open source tools for PostgreSQL: → pgbot Postgres diagnostics for humans and AI agents (Go) → pgterm: a fast Postgres terminal written in Rust A huge thank-you to everyone who tried them, starred them, and shared feedback 🐘 Next stop: 2,000 ⭐ :) https://t.co/4B5p3lgwn1
🚀 Launching today: https://t.co/ii8QrPI9YP Postgres terminal written in Rust 🦀🐘 One terminal for all your Postgres databases. → Add any database in one command → Monitor health, queries, indexes & activity → Switch between databases instantly → Connect with pgbot for deeper diagnostics → Runs locally Free & open source Think htop for Postgres, but built for developers + AI agents. GitHub ↓
是什么 这条内容介绍两个开源 PostgreSQL 工具:pgbot 用 Go 提供数据库诊断、性能分析和 AI Agent 接口;pgterm 用 Rust 提供本地多数据库终端 UI。它们共同强调“面向人和 Agent”的 PostgreSQL 可观测与诊断体验。
架构与核心设计 pgbot 支持直接连接数据库,也支持把 Agent 部署在 Docker、Kubernetes 或私有网络旁。其 MCP 服务通过 stdio 暴露只读的 inspect 与 unused_indexes 工具,并提供 diagnose prompt 和 pgbot://baselines 资源;模型负责解释,确定性工具负责生成 findings。pgterm 通过 profile 管理多个数据库,展示连接、锁、缓存、查询、索引、vacuum 和复制状态,并可连接 pgbot 做深入诊断。
值得借鉴的亮点 把 CLI、终端 UI 与 MCP 建立在同一套数据库信号之上,既方便开发者交互,也方便 Agent 调用;“连接先验证、只读默认、私有环境可部署”降低了自动化运维的安全门槛。Quickstart 还把安装、环境变量和多数据库扩展串成了清晰路径。
边界与风险 材料没有提供 pgterm 内部模块、性能指标或生产验证数据,不能据此推断其扩展性。pgbot 的 Agent 能力本质上依赖确定性诊断结果与模型解释,不能等同于自动修复;只读设计也意味着修改数据库仍需其他受控流程。