1

How do you exit from the PostgreSQL server one that started with sudo su - postgres?

3
  • no that question is for psql, mine is about the serverCommentedDec 3, 2016 at 1:11
  • sudo service postgresql stop?
    – Abelisto
    CommentedDec 3, 2016 at 1:18
  • The server has nothing "to exit from"
    – user330315
    CommentedSep 21, 2018 at 9:57

3 Answers 3

3

type exit and press enter. :-)

    3

    Type \q and then press ENTER to quit psql.

      -1

      A simple exit command did the job.

      1
      • That doesn't "exit the Postgres" server. That exits the shell you have opened.
        – user330315
        CommentedSep 21, 2018 at 9:56

      Start asking to get answers

      Find the answer to your question by asking.

      Ask question

      Explore related questions

      See similar questions with these tags.