How to exit command line utility psql for PostgreSQL?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
Type |
|||||||||||||||||||||
|
And for all kinds of similar questions: Use Or read about psql meta commands in the excellent manual. |
|||||
|
|
|||||||||
|
Using |
|||||
|
I use Ctrl + Z but I think that's specific to linux. |
|||||||||
|
My usual key sequence is:
I think veterans of the psql command line usually shorten that to just:
|
|||||
|
I learned that I could include \q in a batch .sql file, so I could have psql quit earlier from an \i operation. |
|||
|