1

How can I upgrade my PostgreSQL server? I've installed the latest client version with homebrew.

$ psql (9.6.1, server 9.5.4) My server is in 9.5.4 version.

How can I upgrade it to 9.6 ?

OS: MacOS

4

1 Answer 1

1

I found answer to my question.

For the first we should uninstall posrgresql

$ brew uninstall postgresql

Then we should remove db files

$ rm -rf /usr/local/var/postgres

After that we should remove Cellar data

$ rm -rf /usr/local/Cellar/postgresql

And after removing all files we can start to install new version

$ brew install postgresql

If service will not run automatically we can start it just typing the following

$ brew services start postgresql

That's all !

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

Comments

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.