News for hackers. Stuff that matters.
Re:My Favorite PostgreSQL Queries and Why They Matter by jaequery on Saturday April 14, 2018 @09:36PM (#16840606)
can anyone recommend a really good postgres GUI client? ive not found one yet for OSX, which is almost baffling
Re:My Favorite PostgreSQL Queries and Why They Matter by bmdavi3 on Sunday April 15, 2018 @12:48AM (#16841281)
Other people have given actual answers, so I'll go ahead and give the non-answer of... use psql instead!

Like Dimitri Fontaine says early in the Mastering PostgreSQL in Application Development book mentioned elsewhere in this thread, psql is really powerful. From the \d meta commands to inspect anything and everything in the database, to the variable substitution, nothing beats editing sql in your preferred editor and hitting \i my_query.sql in psql to run it. You can also nest additional \i my_other_query.sql commands inside the files you run with \i, which I've found really useful for repeatedly dropping / installing test tables / views, or setting up test data, before running the query I'm actually interested in. Take the time to customize it by adding a few lines to your .psqlrc file, like \x auto, and \timing and it becomes very usable very quickly.

I used psql for a number of years, then joined a new company where DataGrip was the norm. I gave DataGrip an honest try to see what I might be missing from a GUI SQL client. After a year of using it exclusively, I slowly found myself migrating back to psql and can honestly say I don't miss anything.

But it's also possible I just haven't tried the right GUI client yet. Anyway, I hope you find the PostgreSQL client that works for you!

Re:My Favorite PostgreSQL Queries and Why They Matter by njharman on Sunday April 15, 2018 @05:19AM (#16841944)
yes but pgcli, https://www.pgcli.com/
Re:My Favorite PostgreSQL Queries and Why They Matter by emmelaich on Sunday April 15, 2018 @04:45PM (#16844852)
Nice. That tui looks similar to the gcloud alpha interactive cli.
Re:My Favorite PostgreSQL Queries and Why They Matter by mmckelvy on Sunday April 15, 2018 @03:29AM (#16841705)
Concur. Once you get over the initial learning curve, psql is the weapon of choice.
Re:My Favorite PostgreSQL Queries and Why They Matter by hestefisk on Sunday April 15, 2018 @02:14AM (#16841487)
+1 on this one.
Re:My Favorite PostgreSQL Queries and Why They Matter by SnowingXIV on Saturday April 14, 2018 @10:24PM (#16840764)
Postico is fantastic. I’ve been part of a few discussions on github with new features they are adding in and the core team is super helpful and open to making the product better. I use it daily.
Re:My Favorite PostgreSQL Queries and Why They Matter by always_good on Sunday April 15, 2018 @02:37PM (#16844134)
Postico is nice but gives me anxiety. I don't like the metaphor of browser-style back/forward yet hoping the software remembers the state of a window when you go back to it.
Re:My Favorite PostgreSQL Queries and Why They Matter by purerandomness on Saturday April 14, 2018 @10:04PM (#16840697)
If you're using IntelliJ IDEA or any of the other Jetbrains IDEs, there's an excellent and very polished database GUI built-in.

It's also available as a standalone product (DataGrip)

Re:My Favorite PostgreSQL Queries and Why They Matter by tonyarkles on Saturday April 14, 2018 @09:41PM (#16840619)
The guys at work seem to love DataGrip from the IntelliJ folks.
Re:My Favorite PostgreSQL Queries and Why They Matter by nexus2045 on Saturday April 14, 2018 @11:07PM (#16840913)
My money is on DBeaver (free). The killer feature is that you can have all the queries you're doing laid out on the same place and execute the one you want as pleased, and also selecting rows of results and generating an `INSERT` statement off them.
Re:My Favorite PostgreSQL Queries and Why They Matter by chdsbd on Saturday April 14, 2018 @10:36PM (#16840805)
TablePlus supports Postgres/MySQL/Sql Server and others. It has a paid version which adds a few more features, but the free version works fine for me.

https://tableplus.io/

Re:My Favorite PostgreSQL Queries and Why They Matter by auto on Saturday April 14, 2018 @09:49PM (#16840639)
We moved from pgadmin to DBeaver at work and have been pretty satisfied. It's based off Eclipse, so benefits from the windowing/panes, and being able to use any eclipse plugins. My db usage world changed the day I got vim support and auto complete in my query editor.
Re:My Favorite PostgreSQL Queries and Why They Matter by omeid2 on Saturday April 14, 2018 @11:43PM (#16841066)
Based off Eclipse should be considered a disadvantage. IMHO Eclipse on par with Electron in terms of being a CPU and Memory hog.

But last time I used Eclipse it was about five years ago, so things may have changed.

Re:My Favorite PostgreSQL Queries and Why They Matter by auto on Monday April 16, 2018 @09:21AM (#16848749)
I definitely meant that as "being based off Eclipse it comes with these advantages, but caveat emptor otherwise". Honestly I use Eclipse for all my Java dev at work, and compared with the OSX implementation of PGAdmin III, it's well worth the shortcomings.
Re:My Favorite PostgreSQL Queries and Why They Matter by Angostura on Sunday April 15, 2018 @12:42PM (#16843430)
Depending on what kind of thing you want, I played with this a few years ago and really liked it: https://www.malcolmhardie.com/sqleditor/index.html
Re:My Favorite PostgreSQL Queries and Why They Matter by megaman22 on Saturday April 14, 2018 @09:42PM (#16840622)
Datagrip? I almost prefer it over SSMS for Sql Server, and it looks like its postgres support is on par.
Re:My Favorite PostgreSQL Queries and Why They Matter by ZeroClickOk on Sunday April 15, 2018 @05:28PM (#16845095)
Vote for SQL Operations Studio support: https://github.com/Microsoft/sqlopsstudio/issues/56
Re:My Favorite PostgreSQL Queries and Why They Matter by hestefisk on Sunday April 15, 2018 @02:14AM (#16841485)
pgAdmin III is pretty good. But imho one should start with raw psql before going to a GUI.
Re:My Favorite PostgreSQL Queries and Why They Matter by known on Sunday April 15, 2018 @06:54AM (#16842147)
Re:My Favorite PostgreSQL Queries and Why They Matter by tappleby on Saturday April 14, 2018 @10:05PM (#16840702)
I use Postico almost every day, great tool.
Re:My Favorite PostgreSQL Queries and Why They Matter by wilwade on Saturday April 14, 2018 @09:58PM (#16840673)
I use Psequel (psequel.com) when I am out of the CLI and it works nicely and plays nicely with osx.
Re:My Favorite PostgreSQL Queries and Why They Matter by d6de964 on Sunday April 15, 2018 @12:55AM (#16841296)
Navicat is especially useful if you need to migrate from one database software to some other.
Re:My Favorite PostgreSQL Queries and Why They Matter by CCs on Saturday April 14, 2018 @10:22PM (#16840756)
NaviCat Premium worth the money
Re:My Favorite PostgreSQL Queries and Why They Matter by miketery on Saturday April 14, 2018 @09:48PM (#16840638)
Postico!