GithubHelp home page GithubHelp logo

Comments (5)

willfaught avatar willfaught commented on July 24, 2024 2

@cho-m It seems to me that the result of this issue and #167593 is that it isn’t possible to “brew install” Postgres and have it working on your path out of the box. This isn’t a good user experience. I have to manually add the @16 bin to my path to get anything working. Wouldn’t following this pattern for all names that have multiple major versions/incompatible versions result in nothing being linked into PATH by default? That’s not very useful out of the box.

It seems better in my opinion to have a plain “postgresql” formula always install the latest major version, and let users install older versions if they want to use older DBs.

from homebrew-core.

SMillerDev avatar SMillerDev commented on July 24, 2024 1

I also find it strange that I can't have a single postgres installation that tracks with the major versions, and instead always need to specify a version.

This is how Postgres devs intend it to work since you can't migrate from one major version to another without manual intervention

from homebrew-core.

cho-m avatar cho-m commented on July 24, 2024

This is expected behavior because we can only automatically link a single PostgreSQL formula as all of them conflict with each other.

The version of PostgreSQL linked has to be the copy that "owns" the extension formulae (e.g. postgis, citus, etc.) due to how PostgreSQL detects extensions. This may be improved in future, but even then only a single copy can be set to link by default as users need to be able to install multiple PostgreSQL formulae to allow migrating DB to new version.

All other versions of PostgreSQL need to be manually linked.

At some point, the version for PostgreSQL that gets linked by default may change, but that depends on whenever someone creates a PR to do so (migrating all necessary formulae).

from homebrew-core.

ollietreend avatar ollietreend commented on July 24, 2024

@willfaught @cho-m Annoyingly I'm experiencing a similar issue, also related to #167593.

I want to use PostgreSQL 16 with the PostGIS extension.

But there's only one postgis formula and it's hardcoded to postgresql@14 🤦🏻

depends_on "postgresql@14"

So it seems that there's no way to use it with Postgres 16 (or any other version) using Homebrew 😢

from homebrew-core.

slifty avatar slifty commented on July 24, 2024

I also find it strange that I can't have a single postgres installation that tracks with the major versions, and instead always need to specify a version. The broken out-of-the-box experience makes it all the more confusing.

from homebrew-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.