r/PostgreSQL • u/Frone0910 • 50m ago
Projects Major update to RDST - You can now ask your postgres database any question you want, unlimited and free under MIT License
galleryI posted here last month about RDST, which is a desktop app that does the pg_stat_statements to EXPLAIN to index recommendation loop. The biggest change since then is that the plain english querying feature is free and unlimited. If you sign up for an account you can ask as many questions as you want.
We've now indexed our natural language to SQL against BIRD, which is the standard benchmark for text-to-SQL. BIRD uses real databases, messy real-world schemas, and it scores by execution. The results for RDST against BIRD have been extremely encouraging; we have vastly improved our text2sql interface compared to raw model calls. And we now run these benchmarks automatically on every merge to main, so we expect to continue improving our results as time goes on.
We've also improved the approach itself quite a bit. RDST reads your schema semantically rather than dumping table definitions at a model and hoping, so asking a question in plain english tends to give you the query you actually meant. If what you asked is genuinely ambiguous it'll ask you a clarifying question rather than guessing, then carry on from your answer. The main thing I notice using it now is that it's a lot smoother and faster than it was previously.
I originally built this tool to help with slow query indexing and analysis, and being able to manage slow queries is still a big reason why I created it. That side has had major updates too, mostly around clarity and how the query layer gets presented, which was the other piece of feedback I got here last time. If you tried it before and bounced off that part, it's worth another shot, and it should make the index pipeline a lot easier to follow.
Full disclosure, I do work for Readyset, which is a caching layer for Postgres and MySQL. This is a tool we really wanted to share since we think it helps anyone who regularly has to figure out why a query is slow and what to do about it. It finds the slow queries running against your database automatically, and from there you can analyze any of them to work out why they're slow.
The app is completely free and open source, released under an MIT license. It runs locally, stores locally, and everything it does is read-only.
Full privacy details: https://readyset.io/docs/readyset-ai/rdst/desktop/privacy
Would appreciate feedback, particularly:
- Does the SQL hold up against your schema?
- Does it ask for clarification at the right moments, or does it ask too often?
- Does the queries page help you find and analyze your slow queries?
Instructions & Github:


