TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: AI-Driven Index Tuning With Postgres MCP Server

11 pointsby jssmithabout 1 month ago
Hey HN,<p>Postgres Pro is an open source Model Context Protocol (MCP) server built to support every stage of the development process.<p>It does a lot more than help generate and run SQL—it helps you make sure your application and database actually run well.<p>Features:<p>- Industrial-strength tuning algorithms similar to those in MS SQL Server<p>- “What if?” tool to evaluate LLM-generated index suggestions<p>- Works with Cursor, etc., to make changes in ORM code<p>- Ensures safe SQL execution with restricted mode<p>- Includes health checks to stay ahead of production problems

2 comments

crazygringoabout 1 month ago
Using AI to improve query performance seems inevitable, kind of how LLM&#x27;s have made ffmpeg so much more usable.<p>There are just so many factors that go into writing a query that will be performant, not just basic indexes but joins vs. subqueries, single-column indexes vs. multi-column indexes with various sort orders, etc. And even if you write something that&#x27;s performant at 1,000 rows in your test database, it falls apart with 1,000,000 rows in production.<p>But reliable AI that can actually understand all your queries together with the database structure, in order to find performance improvements, feels like it&#x27;s going to become as helpful on the database side as Copilot etc. is on the regular coding side.
评论 #43632784 未加载
rahulcapabout 1 month ago
There are lots of these MCP servers out there. The index analysis and health checks make it stick out.
评论 #43632613 未加载