this post was submitted on 11 Jan 2026
248 points (96.6% liked)

Selfhosted

54450 readers
831 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] schnurrito@discuss.tchncs.de 36 points 18 hours ago (7 children)

Are there real advantages to using either MySQL or MariaDB instead of PostgreSQL?

[–] 0_o7@lemmy.dbzer0.com 1 points 6 hours ago

If you're constrained by resources (CPU/RAM).

There's a reason most web hosts usually have mariadb and not postgres.

[–] Wispy2891@lemmy.world 1 points 7 hours ago

Maybe that once every 2 years when you upgrade to major version it does it automatically? You save 15 mins every 2 years?

No. But there are a number of advantages of using PostgreSQL over the others.

[–] kumi@feddit.online 4 points 12 hours ago* (last edited 10 hours ago) (1 children)

Operating and securing Postgres is a steeper learning curve. MariaDB is more forgiving for best-effort shoestring setups without compensating scalability for it.

As a dev I'm agnostic, as an owner and computer scientiest I prefer Postgres, as a sysadmin or *Ops I will put my hand up for MariaDB any day if I'll be on call or maintain deployments.

[–] msage@programming.dev 1 points 1 hour ago (1 children)

Is Maria that much better than MySQL?

Cause that one is absolute shit, very difficult to maintain, and requires lots of config changes and even replicas can disconnect when something's not 100% ok.

I will take Postgres over any other DB any day of the week.

[–] 0x0@lemmy.zip 1 points 50 minutes ago

Is Maria that much better than MySQL?

MariaDB is MySQL's fork, initiated by the main developers, so...

[–] Rikj000@discuss.tchncs.de 10 points 17 hours ago (1 children)

Yeah,
I did a speed test comparison between Oracle MySQL and MariaDB MySQL,
MariaDB is about 10 times faster.

FYI: When Oracle bought MySQL a lot of developers left and created MariaDB, so the brains behind the project moved, and in the meantime Oracle did a great job of fucking things up.

[–] schnurrito@discuss.tchncs.de 10 points 17 hours ago (1 children)

That's not what I asked. I asked about a comparison of both of them to PostgreSQL.

[–] Rikj000@discuss.tchncs.de 3 points 16 hours ago

Oh misread my bad,
not much experience with PostgreSQL

[–] roguelazer@lemmy.world 7 points 17 hours ago* (last edited 17 hours ago) (1 children)

MySQL often has moderately higher performance (particularly for workloads where you want your data clustered by PK, which is how InnoDB is natively structured) and its replication system is much more flexible than either of PostgreSQL's. I like Percona personally, but MariaDB is fine too.

[–] msage@programming.dev 1 points 4 hours ago

Is it true?

Postgres with correct fillfactor, it doesn't create new pages and works very fast.

Replication in MySQL always sucked ass, only received synchronous replication in some new edition, and that also didn't sound great.

Postgres has logstream and logical replication, both of them can be set to various levels of synchronicity, and logical replication is configurable at least as well as MySQL is in terms of which data is sent.

[–] illusionist@lemmy.zip 8 points 18 hours ago

Depends on the task but for general usage there is no big difference. You would choose one over the other if you need one for work.