Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
50fe0670
Commit
50fe0670
authored
Jun 07, 2021
by
DJ Mountney
Committed by
Douglas Barbosa Alexandre
Jun 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set PostgreSQL 12 as the minimum supported version
Changelog: changed
parent
c14b941c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
doc/install/requirements.md
doc/install/requirements.md
+1
-0
lib/gitlab/database.rb
lib/gitlab/database.rb
+1
-1
spec/lib/gitlab/database_spec.rb
spec/lib/gitlab/database_spec.rb
+2
-2
No files found.
doc/install/requirements.md
View file @
50fe0670
...
@@ -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
)
.
...
...
lib/gitlab/database.rb
View file @
50fe0670
...
@@ -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
=
1
1
MINIMUM_POSTGRES_VERSION
=
1
2
# 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
...
...
spec/lib/gitlab/database_spec.rb
View file @
50fe0670
...
@@ -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
tru
e when using PostgreSQL 11'
do
it
'returns
fals
e 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
(
tru
e
)
expect
(
described_class
.
postgresql_minimum_supported_version?
).
to
eq
(
fals
e
)
end
end
it
'returns true when using PostgreSQL 12'
do
it
'returns true when using PostgreSQL 12'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment