Skip to content

Commit b736b99

Browse files
committed
README.md: Add description about postgresql-client switching behavior
Co-authored by: Steven Achilles <[email protected]>
1 parent b3b700a commit b736b99

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,29 @@ GitLab uses a database backend to store its data. You can configure this image t
240240

241241
#### PostgreSQL
242242

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. 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
253+
-- Detected server version: 140007
254+
- Generating /home/git/.postgresqlrc
255+
14 postgresql:5432 gitlabhq_production
256+
- Uninstalling unused client(s): postgresql-client-12 postgresql-client-13 postgresql-client-15
257+
258+
````
259+
260+
Please note furthermore, that only combatible versions of the `postgresql-client` to GitLab are shipped with this image. Currently these belogn to
261+
262+
- `postgresql-client-12`,
263+
- `postgresql-client-13`,
264+
- `postgresql-client-14`,
265+
- and `postgresql-client-15`.
243266
*NOTE:* version 13.7.0 and later requires PostgreSQL version 12.x
244267

245268
##### External PostgreSQL Server

0 commit comments

Comments
 (0)