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 server Commented Dec 3, 2016 at 1:11
  • sudo service postgresql stop? Commented Dec 3, 2016 at 1:18
  • The server has nothing "to exit from" Commented Sep 21, 2018 at 9:57

3 Answers 3

3

type exit and press enter. :-)

Sign up to request clarification or add additional context in comments.

Comments

3

Type \q and then press ENTER to quit psql.

Comments

-1

A simple exit command did the job.

1 Comment

That doesn't "exit the Postgres" server. That exits the shell you have opened.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.