5 ms·
As someone who's used to MySQL, I keep trying to use PostgreSQL (better standards compliance, better behaviour in the face of bad data) - and I keep going back.
by lmm 11y ago
As someone who's used to MySQL, I keep trying to use PostgreSQL (better standards compliance, better behaviour in the face of bad data) - and I keep going back. The psql interface is awkward (too many magic backslash commands to memorize instead of SHOW CREATE TABLE) and always feels slightly laggy somehow.
- allendoerfer 11y agoI have the same problem. Because of this I use PostgreSQL only if I need it feature-wise and use MySQL as the default. This of course prevents me from getting used to PostgreSQL.
- keithy 11y agoThe backslash commands are way better than having to type out SHOW TABLES; or SHOW DATABASES;, or CONNECT DATABASE X. All I have to do is \dt or \c x. It's so much better. Can't remember them? Just do \?.
- realusername 11y agoThat's also the problem I have, \dt,\c just don't make sense at all and I never remember them whereas 'SHOW TABLES' does not even need explanations. It's also the same thing with the unix users, I never fully understood how postgres handles user permissions. I would say that Postgres itself is really really good but the tooling around is just not there yet.
- noir_lord 11y agoI just remembered it as \d as display and \dt as display tables. I often invent mnemonics that only mean something to me until muscle memory kicks in.
- bshimmin 11y agoHere's a nice one-page cheat sheet, of which about 75% you will probably never need to use: http://www.postgresonline.com/downloads/special_feature/postgresql83_psql_cheatsheet.pdf http://www.postgresonline.com/downloads/special_feature/post...
- noir_lord 11y agoThats excellent, thanks :).
- collyw 11y agoThats like trying to say emacs is easier than eclipse. Sure it may be more efficient once you are used to it, but its not more intuitive.
- baq 11y agoeclipse and intuitive shouldn't ever be used in the same sentence. emacs ditto, but calling one more intuitive from another is missing the point by about 1 AU.
- collyw 11y agoEclipse isn't great in that respect, but choosing something from a menu is definitely more intuitive than remembering the cryptic commands in emacs.
- semi-extrinsic 11y ago"The only intuitive interface is the nipple, after that it's all learned." - Bruce Ediger
- neokya 11y ago\? is killer. Thanks a ton, I didn't know that yet. I also find MySQL cli very easy to work. But that's going to change now, it seems.
- ibotty 11y agoYou are the first person I read saying they like the mysql cli. Ctrl-c kills the whole shell. great, but not what I expect. Want to fix a small typo in your big query? In psql you can just edit your last command in your $EDITOR. Useful (but not perfect) autocomplete is also not in mysql.
- mdemare 11y ago> In psql you can just edit your last command in your $EDITOR. Cool! How?
- xd 11y agoAutocomplete is in MySQL you might just need to enable it with -A or in the config comment out no-auto-rehash.
- fweespeech 11y ago> Ctrl-c kills the whole shell. great, but not what I expect. That is actually exactly what you should expect. SIGINT cancels most things you run in the CLI. Interrupt a ping because you forgot a count parameter? Ctrl+C Honestly, the reason I don't use Postgres has nothing to do with the CLI and everything to do with the ecosystem for Multi-Master being inferior to Galera. But yeah, I'm happy with mysql-cli as well and don't really see the Postgres equivalent as a noteworthy improvement.
- jsight 11y ago
- brightball 11y agoAdmittedly, I haven't used the PG or MySQL cli in years. Coughed up money for a Navicat Premium license about 5 years ago and never looked back.
- neverminder 11y agoYou should also check out https://www.jetbrains.com/dbe/ https://www.jetbrains.com/dbe/
- jsmeaton 11y agoI'm fairly sure I signed up for the early access program months ago and still haven't heard back. It's possible that I meant to and didn't though.
- payamb 11y agohttp://go.jetbrains.com/HQ0110R0QkKgjD01O6V003M http://go.jetbrains.com/HQ0110R0QkKgjD01O6V003M
- cwyers 11y ago> It is important to distinguish EAP from traditional pre-release software. Please note that the quality of EAP versions may at times be way below even usual beta standards. That... scares me, more than a little. I'm okay with it crashing, or losing queries I wrote. I really want failure cases to be restricted to NOT affecting the database, though. I'll probably stay away or try it out on my personal machine on a toy database for now.
- jkestner 11y agoSame here. I muddled along with pgAdmin for a while, but now use Valentina Studio. Excellent free app (has an in-app purchase for some advanced features but doesn't feel crippled at all).
- dolel13 11y ago
- noir_lord 11y agoIf you haven't already checkout pgadmin-3, I mostly live in the cli but if I need to do something complex or write a large query I often jump into pgadmin as it's display and proper editor are excellent!. Prefer it to MySQL Workbench even which I liked.
- knodi123 11y agoI've recently made the switch to postgres, and then I found pgadmin3, and I'm really feeling some pain. For instance, the "explain query" visualization is great, and very helpful, but there's no way I can find to zoom out, at all. And that window doesn't support mouse scrolling. And there's no way to export the visualization somewhere else. So when I'm trying to figure out why a very, very large query is running slowly, it's agony to use pgadmin3. Do you know any good postgres query analysis tools?
- pmontra 11y agoShow create table was so awkward to me after years of \d table. I remember I had to google even desc table and show databases :-) Anyway, you might want to check http://pgcli.com/ http://pgcli.com/ for a free alternative cli with completion. I started using it over the standard psql and I recommend it to everybody.
- marcosdumay 11y agoCount another vote for the pgadmin. I hate the backslash commands of postgres, about as much as I hate the show commands of mysql (what's not nearly as much as I hate the oracle introspection tools). Why couldn't SQL standardize database introspection?
- baq 11y agoit did. https://en.wikipedia.org/wiki/Information_schema https://en.wikipedia.org/wiki/Information_schema
- marcosdumay 11y agoI didn't know it was a standard, nor that it was widely supported. Thanks.
- WorldWideWayne 11y agoThis whole thread makes me happy to be a SQL Server user, where the UI tools are standard and robust. 90% of the time, I don't need to remember any special commands for introspecting and since it's on Windows - I can use the keyboard to navigate the entire UI with ease. When I write SQL, I get glorious Intellisense (that's autocomplete to you) for every single object (edit: and command) in the db.
- jqm 11y agoI don't know why you are getting downvoted. I'm not personally crazy about SQL Server, but a lot of big companies are. In this situation some of us find ourselves in from time to time, SQL Management Studio is pretty handy.
- kaolinite 11y agoI have no idea how they compare but the open-source databases has proprietary database tools too, such as Navicat, which have auto-complete, a good UI (Navicat is hardly beautiful but it works well), etc. There are a few other options too.