Re:Fed up with the Mac, I spent six months with a Linux laptop
by randmeerkat on Friday April 02, 2021 @11:46PM
(#26678280)
Why not run a docker container locally with Postgres and code against that? Then everyone is using the same Postgres version.
[ Parent
| on HN ]
Re:Fed up with the Mac, I spent six months with a Linux laptop
by anang on Saturday April 03, 2021 @02:13AM
(#26678750)
If the solution to homebrews handling of major versions is to not use homebrew, I think it indicates there are issues.
I think it should work like almost Linux distros where the major version is fixed for a release lifecycle, and any other installations require modification. So say brew install postgresql should always install 12, and if you want something else you have to add the version modifier.
Re:Fed up with the Mac, I spent six months with a Linux laptop
by sammorrowdrums on Saturday April 03, 2021 @02:38AM
(#26678831)
This is a side point but the docker suggestion is far cleaner if you work on multiple apps as you can easily configure and run multiple versions with Dockerfiles and compose files to be exactly right for each app, with only the plugins the specific app needs, data stored in a custom location for each app, and the ability to turn off postgres for an app. System postgres installs and upgrades are a needles pain for development.
But I agree that's nothing to do with brew conversation.
Re:Fed up with the Mac, I spent six months with a Linux laptop
by reader_mode on Saturday April 03, 2021 @02:57AM
(#26678896)
Not just different apps but having multiple working environments for the same app - very useful when you wreck the db on a feature branch and need to jump to another to fix a bug etc.
Re:Fed up with the Mac, I spent six months with a Linux laptop
by hysan on Saturday April 03, 2021 @12:57AM
(#26678534)
We do this where I work and while it’s great that it solves this problem, but Docker on macOS leaves much to be desired. The situation with filesystem performance is abysmal, and if you’re unlucky, CPU usage can go through the roof even when running a few lightweight containers.
Re:Fed up with the Mac, I spent six months with a Linux laptop
by koirapoika on Saturday April 03, 2021 @01:46AM
(#26678678)
True that. I see them actively working on the issue, trying to improve the overall experience, which implies improvements, but also regressions.
Re:Fed up with the Mac, I spent six months with a Linux laptop
by darkandbrooding on Saturday April 03, 2021 @01:44AM
(#26678673)
That is my preferred solution and I think it works great. I have persuaded a couple of coworkers to switch, but only a couple so far.
Containerized Postgres is a real win, but running OpenLDAP (+ custom schema) as a containerized application has measurably improved my quality of life. Kudos and great gratitude to the people behind https://github.com/osixia/docker-openldap