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

Ruby

Forcing a Rails database column to be not null

How you can force a table column to always have something in it with Rails

Writing Marketing

We've deleted an article's worth of unhelpful words

We've improved several pages across our site by removing words that add no value, and often detract from the article.