47 pointsby sashash4 hours ago10 comments
  • znnajdla3 hours ago
    I don't understand what this tool offers over simply querying pg directly and reading pg logs?
    • jackschultz2 hours ago
      I built a tool similar to this end of last year with the idea of making it easier for agents (and humans) to work with postgres and do things like getting summaries when they want to. But then, I realized that these models are trained and really know how to use all parts pg and it was easier to let them do that. There can be cases for this, but the cost in extra tokens and steps using pg vs a tool are so little, it wasn't worth it to keep going.
  • 4 hours ago
    undefined
  • sashash4 hours ago
    It works anywhere you have a standard PostgreSQL connection string.
    • opem2 hours ago
      That we all can see and read from your tools's homepage. Why are you repeating the features here again?
  • sashash4 hours ago
    Hi HN, I’m Alex, a longtime PostgreSQL and Rails/Go/Rust engineer.

    I built pgbot because I often needed a quick explanation of what was happening inside a database without first deploying a dashboard, collector, telemetry stack, or separate database.

    pgbot is an open-source 5.9 MB Go binary that connects directly to PostgreSQL and returns useful findings in seconds:

    pgbot inspect — database health pgbot queries — expensive queries pgbot indexes — risky and unused indexes pgbot ask — answers for humans and agents MCP — lets coding agents inspect PostgreSQL directly

    The diagnostic findings are computed deterministically in Go. They are not invented by an LLM.

    pgbot is also read-only by design: it inspects the database but never applies changes. An agent can explain and prioritize the evidence, but it cannot silently modify production through pgbot.

    Source: https://github.com/pgrundev/pgbot

    I’d especially appreciate feedback about missing diagnostic checks, false positives, and the read-only safety model for coding agents.

    • ahofmann3 hours ago
      You should stop posting in your own thread. I vouched for this post, because it looks useful, but I understand why you got flagged.
      • an hour ago
        undefined
  • art2222 hours ago
    [dead]
  • sashash4 hours ago
    [flagged]
  • SmallUseful2 hours ago
    [dead]
  • Zoncovsky4 hours ago
    [flagged]
  • sashash4 hours ago
    Read-only by design: no DDL, DML, or automatic fixes.
  • michael-sumner3 hours ago
    Be careful as it might be telemetrying the database. How do we know that it is not?
    • an hour ago
      undefined
    • ahofmann3 hours ago
      It's open source, so just look "under the hood", I guess?