What command or short key can I use to exit the PostgreSQL command line utility psql
?
Join the Stack Overflow Community
Stack Overflow is a community of 6.5 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
|
|||||||||||||||||||||
|
Type |
|||||||||||||||||||||
|
My usual key sequence is:
I think veterans of the psql command line usually shorten that to just:
|
|||||||||||||||||||||
|
Ctrl+D is what I usually use to exit psql console. |
|||||||||||||||||
|
For Linux command line \q + enter. Quiting with Ctrl + D also is works |
|||
|
I learned that I could include \q in a batch .sql file, so I could have psql quit earlier from an \i operation. |
|||
|
Try:
For curiosity:
|
|||||||||
|
protected by Erwin Brandstetter Sep 18 '14 at 22:48
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?