Raise minimum PostgreSQL version to 12 #786

Merged
floatingghost merged 3 commits from Oneric/akkoma:psql-min-ver into develop 2024-06-07 16:53:23 +00:00
Member

PostgreSQL 11 is EOL since 2023-11-09.
Dropping it lets us simplify search code a bit and avoids the hash index problem for PSQL<10 brought up in #765.

PostgreSQL 11 is EOL [since 2023-11-09](https://www.postgresql.org/support/versioning/). Dropping it lets us simplify search code a bit and avoids the hash index problem for PSQL<10 brought up in #765.
Oneric added 2 commits 2024-05-30 23:58:57 +00:00
This lets us get rid off a runtime check and avoids problems with hash
indices being unsafe and broken before version 10. We currently don't
have any hash indices, but might soon™ add some.

Even PostgreSQL 11 is already EOL since 2023-11-09,
so this shouldn’t actually impact anyone.
Raise log level for start failures
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
610a138845
Contributor

Might as well raise the minimum to 12 (which still seems to be supported until 2024-11-14) so that we can have this option enabled by default: https://docs.akkoma.dev/stable/configuration/postgresql/#disable-generic-query-plans

Might as well raise the minimum to 12 (which still seems to be supported until 2024-11-14) so that we can have this option enabled by default: https://docs.akkoma.dev/stable/configuration/postgresql/#disable-generic-query-plans

honestly yeah, even debian oldstable is pgsql 13 - we can push to that just fine i think

honestly yeah, even debian oldstable is pgsql 13 - we can push to that just fine i think
Oneric changed title from Raise minimum PostgreSQL version to 11 to Raise minimum PostgreSQL version to 12 2024-05-31 15:07:15 +00:00
Oneric force-pushed psql-min-ver from 610a138845 to 95531eca68 2024-05-31 15:11:54 +00:00 Compare
Author
Member

Neat, didn’t know about that option. Now bumping to 12 and setting the custom plan option; since startup fails with an illegal value, it seems like it does take effect.

Does bumping to 13 enable anything further? I only know of 12’s query planer sometimes producing worse results but nothing which holds newer versions back (in the linked case, things are already supposed to work without using a cross join anyway)

Neat, didn’t know about that option. Now bumping to 12 and setting the custom plan option; since startup fails with an illegal value, it seems like it does take effect. Does bumping to 13 enable anything further? I only know of 12’s query planer [sometimes producing worse results](https://akkoma.dev/AkkomaGang/akkoma/issues/650#issuecomment-11931) but nothing which holds newer versions back *(in the linked case, things are already _supposed_ to work without using a cross join anyway)*
Contributor

13 seems to mostly contain performance improvements and better query planning, but otherwise I don't really think there's something that seems to stand out in terms of features that would greatly benefit Akkoma.
https://www.postgresql.org/docs/13/release-13.html

Bumping to 13 would mean those that are still running Ubuntu 20.04 would need to upgrade or switch to another repo since it has Postgres 12 in the default repos, but I don't really know how many people still use it with Akkoma.

13 seems to mostly contain performance improvements and better query planning, but otherwise I don't really think there's something that seems to stand out in terms of features that would greatly benefit Akkoma. https://www.postgresql.org/docs/13/release-13.html Bumping to 13 would mean those that are still running Ubuntu 20.04 would need to upgrade or switch to another repo since it has Postgres 12 in the default repos, but I don't really know how many people still use it with Akkoma.

heh ok merge conflicto, hooray

heh ok merge conflicto, hooray
Oneric force-pushed psql-min-ver from 95531eca68 to b405229612 2024-06-07 13:56:34 +00:00 Compare
Author
Member

rebased

rebased
Oneric force-pushed psql-min-ver from b405229612 to 2180d068ae 2024-06-07 14:21:29 +00:00 Compare
Author
Member

And force-pushed again to add a changelog entry and for this also cherry-picking the changelog unmangling from #789

And force-pushed again to add a changelog entry and for this also cherry-picking the changelog unmangling from #789

thankies~

thankies~
floatingghost merged commit d1c4b97613 into develop 2024-06-07 16:53:23 +00:00
floatingghost deleted branch psql-min-ver 2024-06-07 16:53:23 +00:00
Sign in to join this conversation.
No description provided.