News for hackers. Stuff that matters.
Re:Postgres is eating the database world by patrickdavey on Friday March 15, 2024 @02:09AM (#39712514)
I have a handful of sites I run on a VPS with a basic setup, including MySQL.

One thing I've always liked about MySQL is that it pretty much looks after itself, whereas with Postgres I've had issues before doing upgrades (this was with brew though) and I'm not clear on whether it looks after itself for vacuuming etc.

Should I just give it a go the next time I'm upgrading? It does seem like a tool I need to get familiar with.

Re:Postgres is eating the database world by elp on Friday March 15, 2024 @02:23AM (#39712570)
Its got a lot better over the years.

25+ years ago MySQL was fast and easy to admin but didn't have rollback and a bunch of other features. At the same time Postgres had the features but was horrible for performance and usability. Those days are LONG gone. Mysql obviously has all the features and PG is great to admin and the auto-vacuum works well out of the box.

I run a bunch of clusters of pg servers around the world and they need almost no maintenance. In place upgrades without needing to go the dump/restore route work well, 5 minutes on a TB sized database, just make very VERY sure you do a reindex afterwards or you will be in a world of pain.

Re:Postgres is eating the database world by jesterson on Friday March 15, 2024 @02:56AM (#39712742)
> PG is great to admin

What do you use for it? Is there anything like phpmyadmin for postgres with similar simplicity?

Re:Postgres is eating the database world by monospaced on Friday March 15, 2024 @03:40AM (#39713005)
Coming myself from MySQL to Postgres I found PgAdmin (https://www.pgadmin.org/screenshots/#7) easy to use
Re:Postgres is eating the database world by jesterson on Friday March 15, 2024 @03:46AM (#39713041)
I guess it's better now. Last time I tried years ago it was horrible
Re:Postgres is eating the database world by skeletal88 on Tuesday March 19, 2024 @04:57PM (#39760129)
Pgadmin has gotten lots of bad feedback. I'm using dBeaver or the IntelliJ sidebar to connect to the database.

Dbeaver is more useful. But you can do everything from the command line. You use sql to write database migrations anyway, no?

Re:Postgres is eating the database world by elp on Friday March 15, 2024 @03:32AM (#39712959)
Re:Postgres is eating the database world by mixmastamyk on Friday March 15, 2024 @02:16AM (#39712540)
The price is right and auto-vacuuming is a thing.
Re:Postgres is eating the database world by Macha on Friday March 15, 2024 @08:28AM (#39714769)
Postgres updates are definitely a pain. MySQL is usually just a matter of upgrading the package and restarting the server for the projects I run, but postgres is a full dump and import process.
Re:Postgres is eating the database world by scientist4397 on Friday March 15, 2024 @05:37PM (#39720991)
I manage many PostgreSQL databases, the only time it was a pain, it was due to PostGIS upgrade but not the postgresql cluster itself…

You don’t need to dump and re import the database since a long long time…