Hacker News new | past | comments | ask | show | jobs | submit login

Is there a tool for Postgres that will provide optimization tips over time, based on actual queries run against the DB?

Seems a much more efficient approach than analyzing and diagramming (sometimes) complex explain results.




Probably the closest thing to what you are asking for is pgBadger [0]. If there is a better tool I'd love to hear about it.

[0] https://github.com/darold/pgbadger


Thanks for the tip. Looks interesting, but still on the "analyze and do something" side vs monitoring then making suggestions.

In other words, this could be another input for the kind of tool I'm thinking of.

Kind of surprised this doesn't exist, as it seems doable. Given a combination of query optimizers, slow query monitoring, and common tuning techniques, even a rudimentary, heuristics-based recommendation tool could provide significantly more value then manually analyzing explain and log file output.


Looks like there is a service similar to what you asked for, but it only applies to MySQL, PerconaDB, and MariaDB right now [0]. Maybe as PostgreSQL grows in popularity more services will target it. Or go build your own, it sounds like a viable business.

[0] https://www.eversql.com/faq/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: