Postgres 11 allows you to "exit"
You can now exit the postgres console by typing "exit" or "quit"
$ psql
psql (11.0)
Type "help" for help.
postgres=# exit
$ echo wow
wow
Tweet
You can now exit the postgres console by typing "exit" or "quit"
$ psql
psql (11.0)
Type "help" for help.
postgres=# exit
$ echo wow
wow
Tweet