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

Update PostgreSQL requirement to version 11 #2889

Merged
merged 2 commits into from
May 2, 2024

Conversation

lunkwill42
Copy link
Member

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.

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.
@lunkwill42 lunkwill42 added the dependencies Pull requests that update a dependency file label Apr 30, 2024
@lunkwill42 lunkwill42 requested a review from hmpf April 30, 2024 13:54
@lunkwill42 lunkwill42 self-assigned this Apr 30, 2024
Copy link

codecov bot commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.21%. Comparing base (5c5c202) to head (ae8bcf8).
Report is 2 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Apr 30, 2024

Test results

     12 files       12 suites   11m 43s ⏱️
3 318 tests 3 318 ✔️ 0 💤 0
9 429 runs  9 429 ✔️ 0 💤 0

Results for commit ae8bcf8.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@johannaengland johannaengland left a 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.

@lunkwill42
Copy link
Member Author

lunkwill42 commented May 2, 2024

But I would like to see an issue about the mentioned upgrading to PostgreSQL 13 after not running on Debian Buster anymore.

#2892

@lunkwill42 lunkwill42 merged commit a2be786 into master May 2, 2024
18 checks passed
@lunkwill42 lunkwill42 deleted the update/postgres-minimum branch May 2, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants