1

I am trying to use an older version of postgres and I cannot get it to work. When I run brew search postgres I see:

$ brew search postgresql
==> Searching local taps...
postgresql ✔         [email protected][email protected]          [email protected]

but then when I run brew switch postgres 9.4 I see:

$ brew switch postgresql 9.4
Error: postgresql does not have a version "9.4" in the Cellar.
Versions available: 9.6.2, 9.6.4

What am I missing? I need to run version 9.4

1
  • You need to brew install [email protected] first. Commented Nov 2, 2017 at 0:26

1 Answer 1

1

brew switch works only on installed versions of a specific formula. You have postgresql versions 9.6.2 and 9.6.4 on your machine, so you can only switch to one of those.

However Homebrew provides fixed-version formulae using the <name>@<version> thing. In order to get Postgres 9.4, you can run the following command:

brew install [email protected]
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.