You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,6 +240,30 @@ GitLab uses a database backend to store its data. You can configure this image t
240
240
241
241
#### PostgreSQL
242
242
243
+
**Important note:** This image is shipped with different versions of the `postgresql-client`.
244
+
245
+
During the startup of the container, the major version of the database system is checked based on the specified connection destination. Only the version of the `postgresql-client`, that matches the major version of the Postgres database is used. If the major version of any version of the included clients does not match, the latest client is used (but may causes issues). All other versions of the `postgresql-client` are deleted at runtime.
246
+
247
+
This behavior can be checked using the command `docker logs` and an output like the following should be available:
248
+
249
+
````sh
250
+
…
251
+
Configuring gitlab::database
252
+
- Installing postgresql client to avoid version mismatch on dumping
echo"gitlab_generate_postgresqlrc(): WARNING - Suitable client not installed. postgresql-client-${DB_CLIENT_VERSION_PACKAGE_NAME} will be used but you may face issue (database in backup will be empty, for example)"
215
+
fi
216
+
217
+
# generate ~/.postgresqlrc to switch client version
0 commit comments