Commit 726054b8 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'update-min-pg-version' into 'master'

Set PostgreSQL 12 as the minimum supported version

See merge request gitlab-org/gitlab!63471
parents 5af9912b 6d08191a
...@@ -82,7 +82,7 @@ GitLab is a Ruby on Rails application that runs on the following software: ...@@ -82,7 +82,7 @@ GitLab is a Ruby on Rails application that runs on the following software:
- Ruby (MRI) 2.7.2 - Ruby (MRI) 2.7.2
- Git 2.31+ - Git 2.31+
- Redis 5.0+ - Redis 5.0+
- PostgreSQL 11+ - PostgreSQL 12+
For more information please see the [architecture](https://docs.gitlab.com/ee/development/architecture.html) and [requirements](https://docs.gitlab.com/ee/install/requirements.html) documentation. For more information please see the [architecture](https://docs.gitlab.com/ee/development/architecture.html) and [requirements](https://docs.gitlab.com/ee/install/requirements.html) documentation.
......
...@@ -292,7 +292,7 @@ sudo adduser --disabled-login --gecos 'GitLab' git ...@@ -292,7 +292,7 @@ sudo adduser --disabled-login --gecos 'GitLab' git
## 6. Database ## 6. Database
NOTE: NOTE:
In GitLab 12.1 and later, only PostgreSQL is supported. In GitLab 13.0 and later, we [require PostgreSQL 11+](requirements.md#postgresql-requirements). In GitLab 12.1 and later, only PostgreSQL is supported. In GitLab 14.0 and later, we [require PostgreSQL 12+](requirements.md#postgresql-requirements).
1. Install the database packages. 1. Install the database packages.
......
...@@ -116,6 +116,7 @@ the following table) as these were used for development and testing: ...@@ -116,6 +116,7 @@ the following table) as these were used for development and testing:
|----------------|----------------------------| |----------------|----------------------------|
| 10.0 | 9.6 | | 10.0 | 9.6 |
| 13.0 | 11 | | 13.0 | 11 |
| 14.0 | 12 |
You must also ensure the following extensions are loaded into every You must also ensure the following extensions are loaded into every
GitLab database. [Read more about this requirement, and troubleshooting](postgresql_extensions.md). GitLab database. [Read more about this requirement, and troubleshooting](postgresql_extensions.md).
......
...@@ -149,7 +149,7 @@ Remember to set `git -> bin_path` to `/usr/local/bin/git` in `config/gitlab.yml` ...@@ -149,7 +149,7 @@ Remember to set `git -> bin_path` to `/usr/local/bin/git` in `config/gitlab.yml`
### 7. Update PostgreSQL ### 7. Update PostgreSQL
WARNING: WARNING:
From GitLab 13.0, you must use at least PostgreSQL 11. From GitLab 14.0, you must use at least PostgreSQL 12.
The latest version of GitLab might depend on a more recent PostgreSQL version The latest version of GitLab might depend on a more recent PostgreSQL version
than what you're currently running. You may also need to enable some than what you're currently running. You may also need to enable some
......
...@@ -14,7 +14,7 @@ module Gitlab ...@@ -14,7 +14,7 @@ module Gitlab
# Minimum PostgreSQL version requirement per documentation: # Minimum PostgreSQL version requirement per documentation:
# https://docs.gitlab.com/ee/install/requirements.html#postgresql-requirements # https://docs.gitlab.com/ee/install/requirements.html#postgresql-requirements
MINIMUM_POSTGRES_VERSION = 11 MINIMUM_POSTGRES_VERSION = 12
# https://www.postgresql.org/docs/9.2/static/datatype-numeric.html # https://www.postgresql.org/docs/9.2/static/datatype-numeric.html
MAX_INT_VALUE = 2147483647 MAX_INT_VALUE = 2147483647
......
...@@ -125,10 +125,10 @@ RSpec.describe Gitlab::Database do ...@@ -125,10 +125,10 @@ RSpec.describe Gitlab::Database do
expect(described_class.postgresql_minimum_supported_version?).to eq(false) expect(described_class.postgresql_minimum_supported_version?).to eq(false)
end end
it 'returns true when using PostgreSQL 11' do it 'returns false when using PostgreSQL 11' do
allow(described_class).to receive(:version).and_return('11') allow(described_class).to receive(:version).and_return('11')
expect(described_class.postgresql_minimum_supported_version?).to eq(true) expect(described_class.postgresql_minimum_supported_version?).to eq(false)
end end
it 'returns true when using PostgreSQL 12' do it 'returns true when using PostgreSQL 12' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment