Settings

Theme

Show HN: pgMagic – a Mac Postgres client that lets you query in natural language

pgmagic.app

49 points by tjhill 3 years ago · 12 comments · 1 min read

Reader

Hi HN. This is a project I've been building for the last month.

It's a macOS postgres client that uses your OpenAI key to generate and immediately execute queries against your database locally on your machine.

I imagine the user being someone familiar with SQL and able to identify errors in the generated code, but regularly needs to write queries to answer relatively simple questions.

This is my first software project I'm intending on selling myself and would love feedback on the product and landing page. I'd also love ideas on how to market it to users, as I'm very new to this.

In the near future I want to flesh out the features to include:

* toggle immediate execution

* better export/editing

* local model inference

* windows & linux support

* themes

Thanks for trying it out and let me know what you think!

lfittl 3 years ago

Neat project!

Just in case its helpful to you, I maintain pg_query together with my colleagues at pganalyze, which packages the Postgres parser as a library: https://github.com/pganalyze/libpg_query

Might be useful to include in your product as a way to run a quick syntax check on the query output by the LLM, without actually connecting to the database and causing an error in the logs.

futhey 3 years ago

This is cool. Not a feature request, but I guess my dream version of this in my head since I saw GPT-3 was this + charts, and maybe for Clickhouse.

  • tjhillOP 3 years ago

    Yeah data viz generation is certainly something I'm looking into adding.

tjhillOP 3 years ago

P.S. If you would like to purchase it after the demo, please use HELLOHN for 25% off :)

Thanks again!

DrJid 3 years ago

This looks really cool! Unfortunately, no matter how hard I try, I can't seem to connect to a database. I get the "error returned from database: permission denied for database "postgres" even though I'm specifying all the fields.

  • tjhillOP 3 years ago

    Hey! I’d love to learn more about your setup if you have time. Do you mind sending an email to hello[at]pgmagic.app - Thanks!

toppy 3 years ago

Put priority on local models and aims for data analysts. Both SQL syntax and a structure of the database even for big project are simple and users will ask relatively simple questions. I bet you don't even need "large" language models for this.

nozzlegear 3 years ago

Nice work! I’m really interested in this but I made the unfortunate mistake of tying all my apps to MS SQL a long time ago. I might still pick this up for future projects.

alexalx666 3 years ago

cool, 1 year of updates seems like a good alternative to subs

slau 3 years ago

This is very cool. I'll definitely try it out soon.

mehmet_mhy 3 years ago

This is awesome!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection