this post was submitted on 24 Aug 2024
86 points (95.7% liked)

Fediverse

27935 readers
325 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 1 year ago
MODERATORS
 

It seems most instances still use version 0.19.3 and the only one using the up-to-date version is lemmy.ml. They used to update relatively fast. What's changed?

you are viewing a single comment's thread
view the rest of the comments
[–] ptz@dubvee.org 49 points 1 month ago (3 children)

0.19.4 requires upgrading Postgres (and exporting/importing the database to the new version).

I just don't have time for that right now since my Postgres DB is on a dedicated machine and is shared with a few other active services.

[–] Anafabula@discuss.tchncs.de 27 points 1 month ago (4 children)

They make breaking changes like that in patch releases?? Do they not follow semver?

[–] ptz@dubvee.org 34 points 1 month ago

Lol, yeah.

I think they plan to do semvar, but if I recall (and I may be wrong), since it's pre 1.0.0, they're "allowed" to make breaking changes since it's still in alpha.

[–] Kaboom@reddthat.com 18 points 1 month ago

The lemmy devs are not exactly industry developers.

Hell, they don't even respect gpdr, and one day the EU is going to wreck an instance and maybe an admin too if they didn't separate liability properly.

[–] JackbyDev@programming.dev 6 points 1 month ago
  1. Anything can change while major version is zero
  2. Technically, semver only tracks public API changes
[–] SorteKanin@feddit.dk 2 points 1 month ago

Technically this is entirely within semver since it's 0.x.y.

[–] Nothing4You@programming.dev 8 points 1 month ago

this isn't true. it was incorrectly stated in the upgrade guide but has been removed a while ago. it was supposed to be a recommendation due to some issues with postgres 15. there is no postgres upgrade required between 0.19 releases.

[–] woelkchen@lemmy.world -1 points 1 month ago (1 children)

is shared with a few other active services.

Why would you do that, given that Lemmy is 0.x software?

[–] ptz@dubvee.org 35 points 1 month ago* (last edited 1 month ago) (1 children)

Because I'm not made out of server resources lol. I've already got a beefy server that's dedicated to Postgres and is well tuned, and everything else already hooks into it. I've also had better performance (and less overhead) with one, big well-tuned database versus lots of stack-local databases.

If Lemmy goes tango uniform, then any damage would be limited to its schema. The worst it could really do would be resource starve it, but Zabbix would alert me of that quickly.

[–] walden@sub.wetshaving.social 14 points 1 month ago* (last edited 1 month ago) (1 children)

My understanding is that postgres doesn't need to be upgraded. It'll still work with version 15 or whatever you have. Postgres 15 has some sort of memory leak that they're trying to get away from, so they made 16 the new default.

Same with the "requirement" to upgrade pict-rs to the latest version. You can keep the old version if you don't care about the new image proxy feature.

Really it's a not a problem of needing to upgrade this stuff, but a problem with the documentation which isn't clear. That's a big weak spot for the Lemmy project in my opinion. I only learned the above information from lurking a bit in the Matrix chat.

[–] ptz@dubvee.org 4 points 1 month ago (1 children)

Good to know. Last time I recall a DB upgrade being mentioned, it was when pg15 became the new minimum so I assumed this was the same case. That one was required since they used some new feature in pg15 (don't recall the specifics, but my test instance that was on pg14 failed the DB migrations for that lemmy release, and that was why)

[–] walden@sub.wetshaving.social 5 points 1 month ago

Ah, interesting. That experience combined with the wording of "this update requires postgres 16", I can see where the confusion comes from.

Interestingly enough, they fixed the documentation. Now it says "We recommend upgrading to PostgreSQL 16 due to a known memory leak in PSQL 15. To use the new image proxy feature, pict-rs version 0.5+ is required." https://join-lemmy.org/news/2024-06-07_-_Lemmy_Release_v0.19.4_-_Image_Proxying_and_Federation_improvements