Comments (5)
@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.
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.
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.
@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
🤦🏻
homebrew-core/Formula/p/postgis.rb
Line 38 in d091ded
So it seems that there's no way to use it with Postgres 16 (or any other version) using Homebrew 😢
from homebrew-core.
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)
- Octave 9.1.0 opengl bug interacting with qt6-6.7.0 HOT 4
- musikcube 3.0.2_1 crashing on startup HOT 8
- clang-18 failed with exit code 139 HOT 4
- /usr/local/bin/apachectl: line 95: lynx: command not found HOT 2
- ruby >= 3.2 bottles have an incorrect path in RbConfig::CONFIG["AR"] HOT 15
- Cannot install plugins within poetry HOT 9
- mecab-ipadic: character encoding corruption HOT 9
- mingw-w64 SHA256 mismatch HOT 2
- Deno 1.43.2 homebrew build segmentation fault HOT 16
- virt-manager crashes without `--no-fork` HOT 1
- `rust` should not bundle huge HTML documentation HOT 4
- ncurses build depends on TERMINFO variable HOT 1
- mpv formula is missing molten-vk as a dependency HOT 6
- parquet-cli has an extra dependency jar HOT 1
- glibmm 2.80 bottle: link error when using Glib::DateTime::create_now_local() HOT 4
- bottled emacs exit with SIGSEGV when use built-in rust-ts-mode HOT 6
- helm-docs version report issue HOT 7
- tgenv should point to new github instead of old one HOT 3
- git-svn died of signal 11 on imac m1 HOT 2
- sip formulae doesn't appear in pip3 list on sonoma HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-core.