-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update PostgreSQL requirement to version 11 #2889
Conversation
While the current version of NAV may require no newer PostgreSQL syntax than 9.6, that version is hopelessly outdated (and newer Django versions we are considering moving to will not support PostgreSQLs this old). We also run mostly version 13 in production, and without this change, dumping and loading data from an actual production server just becomes that much harder (dump from PostgreSQL 13 don't seem to be compatible with 9.6).
Realistically, nothing in NAV uses any PostgreSQL syntax newer than version 9.6. However, this version of PostgreSQL has been EOL for many years, and we cannot even dump production data from modern PostgreSQL versions and expect to load them into our development installs by now. PostgreSQL 13 ought to be our target, but the next NAV release should still be able to run on Debian Buster, which means PostgreSQL 11 is the minimum. We can move to require PostgreSQL 13 in NAV 5.11.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2889 +/- ##
=======================================
Coverage 60.21% 60.21%
=======================================
Files 601 601
Lines 43981 43981
=======================================
Hits 26481 26481
Misses 17500 17500 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I would like to see an issue about the mentioned upgrading to PostgreSQL 13 after not running on Debian Buster anymore.
|
Realistically, nothing in NAV currently uses any PostgreSQL syntax newer than version 9.6. However, this version of PostgreSQL has been EOL for many years, and we cannot even dump production data from modern PostgreSQL versions and expect to load them into our development installs by now. Also, we expect to update to a newer Django release soon, and Django has deprecated support for PostgreSQLs older than 12.
PostgreSQL 13 ought to be our target, but the next NAV release should still be able to run on Debian Buster, which means PostgreSQL 11 must be the minimum for this release. We can move to require PostgreSQL 13 in NAV 5.11.
This ensures that the dev environment will run PostgreSQL 13. The Docker test environment and the GitHub test environments should be running PostgreSQL 11 until the next feature release.