frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I built an AI agent with Mistral that automates 80% of my PostgreSQL DBA work

2•bugrac•2h ago
I wanted to move beyond using AI for just writing code or content and see if it could manage complex, specialized systems. This led me to build my own AI database assistant, and it's already handling about 80% of my routine DBA tasks via natural language.

This isn't just a fancy chat interface. It's a command center where a Mistral-powered AI agent connects to my PostgreSQL data (via Postgres MCP) and gives me instant health reports and executable optimization commands.

Here’s the stack and how it works:

The Brain: I'm using an open-source Mistral model. Its reasoning capability is key—it doesn't just fetch data; it understands the intent behind a request like "Why is the database slow?"

The Bridge: The agent accesses the database through a 'Postgres MCP' (Monitoring and Control Plane) bridge, all running in Docker. This gives the AI secure access to the necessary metrics and logs without direct, risky DB exposure.

The "Wisdom": The system combines traditional DBA knowledge (like analyzing pg_stat_statements outputs) with the speed of AI.

The result? I no longer spend hours manually parsing query stats. I can just ask:

"Find the top 5 slowest queries from the last 24 hours."

"What's the index hit rate on the users table?"

"Simulate a new index on orders(customer_id). "

For that last part, it even uses hypopg to simulate index recommendations in seconds without locking tables.

I've essentially created a "turnkey" system that takes my natural language commands, diagnoses performance issues, and suggests concrete optimizations. It feels like a real example of how AI agents will merge with deep technical domains.

Happy to answer any questions about the setup.

https://www.bigdba.com/postgresql/2267/ai-driven-postgresql-performance-tuning-the-open-source-llm-and-mcp-guide/

Comments

Fareast•2h ago
Just give me a real example of when this design gave real advice and actually optimized PostgreSQL?

Prioritization Starts with Strategic Prioritization

https://cutlefish.substack.com/p/tbm-384-prioritization-starts-with
1•kiyanwang•39s ago•0 comments

AI and Software Engineering: This time it's different (it never is)

https://edemkumodzi.com/posts/ai-and-software-engineering-this-time-its-different-it-never-is/
1•wsgeorge•55s ago•0 comments

How Bad Is Finance's Cockroach Problem? We May Be About to Find Out

https://www.nytimes.com/2025/10/27/opinion/financial-market-credit-loans.html
1•zerosizedweasle•2m ago•1 comments

Victorian-Era Downtown Los Angeles

https://en.wikipedia.org/wiki/Victorian_Downtown_Los_Angeles
1•KoftaBob•3m ago•0 comments

Liberación de Dispositivo

1•Dani_Martinez-•3m ago•0 comments

Polish top-performing language for complex AI tasks, finds study

https://notesfrompoland.com/2025/10/26/polish-top-performing-language-for-complex-ai-language-tas...
1•thombles•4m ago•0 comments

Ungrounded Thought

https://www.robinsloan.com/lab/ungrounded/
1•FromTheArchives•4m ago•0 comments

Is Wikipedia's Jimmy Wales the last decent tech baron?

https://www.theguardian.com/technology/2025/oct/27/people-thought-i-was-a-communist-doing-this-as...
1•terespuwash•7m ago•0 comments

Rust cross-platform GPUI components

https://github.com/longbridge/gpui-component
1•xvilka•11m ago•0 comments

Fixing rust-lang stdarch issues in LLVM

https://tweedegolf.nl/en/blog/196/fixing-rust-lang-stdarch-issues-in-llvm
1•fanf2•13m ago•0 comments

OpenTollData

https://github.com/louis2038/OpenTollData
1•maelito•13m ago•0 comments

The people who dare to say no to artificial intelligence

https://www.msn.com/en-us/news/us/meet-the-people-who-dare-to-say-no-to-artificial-intelligence/a...
1•pseudolus•13m ago•0 comments

Show HN: Mesh AI enables 3D creators to turn their imagination into reality

https://www.meshivo.com
1•JiangJason•17m ago•0 comments

Human-errors: a nice way to show errors in config files

https://github.com/NSPC911/human-errors
1•Terretta•20m ago•0 comments

Kotlin Weekly #482

https://mailchi.mp/kotlinweekly/kotlin-weekly-482
1•amalinovic•22m ago•0 comments

Ask HN: Control 2 air-gapped computers with 1 mouse and keyboard

1•WorldDev•23m ago•0 comments

WorldGrow: Generating Infinite 3D World

https://github.com/world-grow/WorldGrow
1•cdani•23m ago•0 comments

Credit based AI Search analytics tool for marketers

https://www.geosaur.com
2•teemupp•26m ago•0 comments

Rust Gets a Garbage Collector

https://weeklyrust.substack.com/p/rust-gets-a-garbage-collector
1•rustbytes•27m ago•0 comments

Loglybase – Open-source platform for sharing product updates

https://loglybase.com/
2•alf_UMi•28m ago•1 comments

The Quest for Corrosion Proof Satellites

https://www.universetoday.com/articles/the-quest-for-corrosion-proof-satellites
2•FromTheArchives•30m ago•0 comments

Kimi K2 RL'ed Qualitative Data to Write Better

https://www.dbreunig.com/2025/07/31/how-kimi-rl-ed-qualitative-data-to-write-better.html
2•nekofneko•33m ago•1 comments

Tell HN: macOS 26 is making me have regrets for the first time in 12yrs

1•trumbitta2•34m ago•0 comments

The soil falling over my head

https://samkriss.substack.com/p/the-soil-falling-over-my-head
1•gHeadphone•38m ago•0 comments

Webbsite.renavon.com: Continuing Hong Kong corporate data of Webb-site.com

https://webbsite.renavon.com/
1•slygent•40m ago•1 comments

AWS Adds Scope 3 Emissions Data to Customer Carbon Footprint Tool

https://thenewstack.io/aws-adds-scope-3-emissions-data-to-customer-carbon-footprint-tool/
1•chhum•40m ago•0 comments

Gnome 49 RAM Usage on NixOS, Chimera Linux and Manjaro

https://grigio.org/gnome-49-ram-usage-on-nixos-chimera-linux-and-manjaro/
1•grigio•41m ago•1 comments

Token-Oriented Object Notation – JSON for LLMs at Half the Token Cost

https://github.com/johannschopplich/toon
1•Terretta•42m ago•0 comments

ShinkaEvolve in Action: How a Human-AI Partnership Conquered a Coding Challenge

https://sakana.ai/icfp-2025/
1•doppp•46m ago•0 comments

Overwhelmed by Gun Violence

https://andys.blog/overwhelmed/
1•andytratt•47m ago•0 comments