How to exit from PostgreSQL command line utility: psql

前端 未结 9 1262
小鲜肉
小鲜肉 2020-12-02 03:22

What command or short key can I use to exit the PostgreSQL command line utility psql?

9条回答
  •  感动是毒
    2020-12-02 03:42

    Type \q and then press ENTER to quit psql.

    UPDATE: 19-OCT-2018

    As of PostgreSQL 11, the keywords "quit" and "exit" in the PostgreSQL command-line interface have been included to help make it easier to leave the command-line tool.

提交回复
热议问题