HACKER Q&A
📣 iameoghan

What PostgreSQL client do you use?


There are seemingly a plethora of clients for Postgres [1].

What client(s) do HN use day-to-day? Why have you chosen it?

I'm looking for recommendations to use for light usage. Ideally, something that would help build the schema visually.

[1] https://wiki.postgresql.org/wiki/PostgreSQL_Clients


  👤 OJFord Accepted Answer ✓
DBeaver.

It suffers from 'oh God this was definitely written in Java, wasn't it', but it's mostly good.

Then I happened across pgAdmin recently which probably does everything I want from DBeaver, and has a docker image (it's browser based) but I haven't really tried it properly. Keep meaning to though, I have a hopeful feeling that it'd be 100% what I recommended if I had.


👤 zippoxer
TablePlus - Love it! Cross-platform without Electron and yet still pretty. They got UX right, it's minimal yet powerful enough for me.

👤 kmstout
psql. It's installed everywhere I need to use it, it reads from stdin, and it writes to stdout. It's often the case that I want to take a SQL query that I've developed, generalize it a bit, and use something like

  psql OPTIONS <
in a shell script (probably wrapped in a function for convenience).

👤 atonse
I use and love Postico. But I do very basic stuff (SQL, DDL, editing rows, etc)

👤 evo_9
MS added PostgresSQL support to their excellent cross platform dB tool Azure Data Studio:

https://azure.microsoft.com/en-us/blog/azure-data-studio-an-...


👤 nsxwolf
I use the database tool built into IntelliJ. It’s amazing. It’s available as a stand-alone product named DataGrip.

👤 aarpmcgee
Postico seems to be heavily optimized for the 80% of what I need in a postgres tool. I love it.

👤 oliwarner
Django.

It's not the answer you thought you were looking for, but it's a bloody good framework for modelling data, reporting, and also scripting things around it.


👤 nickreese
For visual schema building the best I’ve found is pgmodeler. It is buggy and isn’t really a client but it is great at modeling, viewing schemas in a model, and overall making sense of how complex data connects.

Edit: For day-to-day I use Postico but am playing with beekeeper as soon as JSON and JSONB support are figured out.


👤 oftenwrong

👤 pella
For PostGIS / Spatial data

#1. DBeaver: Working with spatial/GIS data

https://dbeaver.com/docs/wiki/Working-with-Spatial-GIS-data/

#2. pgAdmin4: now offers PostGIS geometry viewer

https://www.bostongis.com/blog/index.php?/archives/272-pgAdm...

---------

Any other?


👤 rgoulter
I'd guess in your case ("light usage"), just choose one of the open-source GUI clients would be best. Probably DBeaver.

Here's the decision-tree I'd go with:

Do you want to pay money for it? If not, use a free or open source one.

Are you comfortable with running SQL commands from the command line? If not, go for a GUI one.

This leaves "OS-specific or cross platform" (which should be straightforward to resolve), and "desktop client or web interface". I'd expect a desktop client to be easier to setup.


👤 alexandernst
Navicat , it has everything I can ask from a RDBMS client (it even supports NoSQL!), from days transfer, database diffing, scheme reversing, advanced DBA related tasks...

👤 soheilpro
My very own pgcmd [1]. I usually pipe the output to jq [2] or catj [3] for further processing.

[1] https://github.com/soheilpro/pgcmd

[2] https://stedolan.github.io/jq

[3] https://github.com/soheilpro/catj


👤 wolfgang000
dbeaver It's really good and surprisingly lightweight considering it's java app.

👤 rboyd
Most of these comments don't seem to cover what you're asking for, which was building the schema visually.

SQLEditor (https://www.malcolmhardie.com/sqleditor/) is quite good if you're on OS X. It'll generate entire schema or migration since last save.


👤 tomashertus
I'm using pgAdmin4 and I'm super happy with that. For the day-to-day tasks it's a great tool!

👤 pvsukale3
PGWeb : https://github.com/sosedoff/pgweb Web-based PostgreSQL database browser written in Go.

very lite and minimal.


👤 yen223
Psql when I want to do anything programmatic

TablePlus when I want to do data exploration.

I've heard good things from colleagues about JetBrain's DataGrip, but I haven't given it a fair go.


👤 dataminded
I've been using aquadata for years. It's been a fairly good time.

I have started to transition more of my work to datagrip because I use pycharm and it's right there.


👤 sheeshkebab
postico is great

👤 dahdum
I used Aqua Data Studio for years until they changed to $500/yr license. Tried using DataGrip but couldn't used to it, now I just use pgAdmin4.

👤 goldfix
I suggest: https://www.sql-workbench.eu/

lightweight and JDBC compatible


👤 bsg75
DbVisualizer has been my main SQL “IDE” for years. https://www.dbvis.com

👤 nhumrich
Datagrip. I love the tight integration with PyCharm.


👤 Insanity
PgAdmin but I've not really looked around, it's the one I used when I learned postgres and stuck with it.

👤 ahsd1
Valentine studio rocks. Free ver is sufficient.

👤 1ark
Valentina Studio does the job for me.

👤 brightball
DBeaver

👤 iamthelord
Can’t live without postico

👤 alphabettsy
Postico and Pgweb

👤 turrini
psql and dbeaver

👤 hexyoungs
pgcli

👤 KristiMKE
1. pgAdmin 2. DBeaver 3. Navicat 4. DataGrip 5. OmniDB

This article breaks down the pros and cons, features, and pricing for each of the top PostgreSQL GUI tools: https://scalegrid.io/blog/which-is-the-best-postgresql-gui-2...