Quitting Postgres psql

I've just started using psql and had no idea how to quit - here's how

Today is my first day of playing with the postgres commandline client psql.

My first task was completed (renaming a database) and I wanted to leave the client.

The answer is to type \q, as a Postgres novice this was non-obvious!

Things that did not work;

  • quit
  • exit
  • Ctrl+C
  • sadlfjdsljsdfs
  • die

Recent posts View all

VS CodeWeb Dev

Select multiple lines in VS Code

How to select multiple lines to edit at once within VS Code

VS Code Web Dev

Move a line up or down with VS Code

A quick tip on moving lines up or down a file using your keyboard in VS Code