This chapter would not be complete without showing you how to exit psql.
Use backslash-q (\q) to quit the session.
Backslash-q exits psql. Backslash g (go), p (print), r
(reset), and q (quit) should be all you need for a while. Section
has more information about psql.