3 ms·
small, but useful feature is that you can now use keywords quit or exit to exit the psql command line. Helpful change for those of us who forget that the only c
by chadash 8y ago
small, but useful feature is that you can now use keywords quit or exit to exit the psql command line. Helpful change for those of us who forget that the only current command is "\q".
EDIT: ctrl+D also works, just be careful not to press twice, since doing so will exit psql and then exit the shell altogether
- aquabeagle 8y agoDoes ^D to send EOF not work like most programs?
- hultner 8y agoIt does, I think this is more aimed at novice shell users.
- beatgammit 8y agoCtrl+D works for me. :)
- c0l0 8y agoIn bash, you can use `set -o ignoreeof` for your interative shells to not trigger logout upon receiving EOF/^D.
- bartlomieju 8y agoThanks, that's super useful! I found myself accidentally quitting terminal multiple times by pressing Ctrl+D one too many times.
- BorisMelnik 8y agodamn thats really helpful, thank you
- millerm 8y agoThanks!
- vladsanchez 8y agoSorry but I think this is a frivolous feature.
- smt88 8y agoStandardizing commands and making PG more user-friendly isn't frivolous. Usability is one of the most important qualities of a good program or library.
- Drdrdrq 8y agoI think this is why MySQL had such success compared to PgSQL in the past - compare "show tables" with "\d".
- threeseed 8y agoI've been using a terminal since the Minix days. I honestly had never heard of the Ctrl-D escape sequence until a few weeks ago. So having common exit/quit commands makes life a lot easier at least for some of us.
- Apaec 8y agoVim should learn from psql, not even ctrl+d works there.