News for hackers. Stuff that matters.
Re:In Praise of PostgreSQL by marcosdumay on Thursday August 05, 2021 @03:48PM (#28078654)
On Linux you don't actually need to install Postgres. For Windows there is this: https://garethflowers.dev/postgresql-portable/

I agree it could be better packaged, but it's actually not impossible to ship a Postgres with your program.

Re:In Praise of PostgreSQL by SahAssar on Friday August 06, 2021 @06:05AM (#28085163)
> On Linux you don't actually need to install Postgres.

What do you mean? It's not like postgres is bundled by default with most distros.

Re:In Praise of PostgreSQL by marcosdumay on Friday August 06, 2021 @09:24AM (#28086810)
You can run it without installing. You can run almost anything on Linux without installing.
Re:In Praise of PostgreSQL by SahAssar on Friday August 06, 2021 @11:01AM (#28088087)
That's true for all OS'es (except iOS & android), if you have the executable you can run it. Installing usually just consists of placing the executable on a specific path and creating some directories to hold data/config/logs. You also often need to consider the dependencies of the application (unless it's statically compiled), so it's a lot easier to use your distros package manager.
Re:In Praise of PostgreSQL by marcosdumay on Friday August 06, 2021 @11:47AM (#28088790)
That's really not true for all applications, and Windows applications tend to require being installed, while Mac ones are all over the place.

Yes, the OS doesn't impose any opinion. It's just a matter of what application developers do, and the developers of Linux applications tend to write code that doesn't require installing. As an example, there's Postgres :)

Re:In Praise of PostgreSQL by SahAssar on Friday August 06, 2021 @03:46PM (#28091925)
I still don't get what you mean (or exactly what you mean when you say "installing"), Postgres can be a simple executable on OSX and Windows and on linux it is usually "installed" because it needs to setup a data directory, user/group, config directory and so on.

There is nothing about linux that makes postgres more or less portable than on windows or osx, and I'd be interested if you have any examples of postgres being used in a non-packaged way (outside of development tools like postgresapp.com).

Besides that, one of the strengths of most linux distros is that they provide a centralized way to install/upgrade packages like apt/yum/dnf/pacman and don't have to rely on third party tools like homebrew.