Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop PostgreSQL 10 support and fix user session query #783

Merged
merged 3 commits into from
Apr 17, 2023

Conversation

LukasKalbertodt
Copy link
Member

@LukasKalbertodt LukasKalbertodt commented Apr 17, 2023

Fixes #748
Fixes #776

See commit messages for further information.

What's still missing: update the test deployment server to PG10 and then creating all DB dumps with PG11. However, we currently have tons of open PRs and I don't want to upgrade PG on the test server now :D #784

Fixes elan-ev#776

I also checked and haven't found any other `extract` usage that we
haven't fixed yet.
PG 10 is EOL for some time already so we don't need to test against
that anymore. But further, there have been a number of cases where
subtle breaking changes in newer PG versions broke Tobira for those
versions. Ideally of course we have a perfect test suite and run it for
all supported PG versions. We do not have that, however. So the next
best idea is: let devs use the newest PG version locally and let the
test deployment server use the oldest supported PG version. Then
hopefully these bugs are noticed earlier.

To be clear: we support all PG versions that are still officially
supported, which at this time, are PG11 - 15.

Loading DB dumps created with PG 10 still works.

For devs: you need to remove the volume containing your old DB as
otherwise PG 15 will not start. I'm sure there are better ways but I
did it like this: `docker-compose down --volumes`.
@LukasKalbertodt LukasKalbertodt added the changelog:admin Changes primarily for admins label Apr 17, 2023
See previous commit: 10 is EOL, so we don't need to check it. CI
wants to check with the oldest supported PG version.

Loading the DB dump unfortunately generates some warnings which lead to
a non-0 error code. But the import is fine, so we sadly have to ignore
the error code.
@github-actions github-actions bot temporarily deployed to test-deployment-pr783 April 17, 2023 11:06 Destroyed
@owi92 owi92 merged commit 6649928 into elan-ev:master Apr 17, 2023
@LukasKalbertodt LukasKalbertodt deleted the fix-and-upgrade-pg branch April 17, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:admin Changes primarily for admins
Projects
None yet
2 participants