WIP: Maintenance on PostgreSQL clients#3186
Conversation
|
@kkimurak What do you think about this PR and the removal of old PostgreSQL client versions. I guess, we have to add a comment to the release notes. Otherwise it might be possible that a lot of users could run into trouble. |
|
I think it's ok to remove old PostgreSQL clients. In addition to release notes, how about displaying a warning (or terminating with an error) if the minimum and maximum version requirements are not met? By the way, according to the link, Maximum PostgreSQL version for GitLab 18.x is 17.x (tested against GitLab 17.10 and later) |
|
@kkimurak Nice idea and I'll take over your commits. However, since GitLab does not support PostgreSQL v18 so far not officially, we'll wait before publishing this branch. |
64d1b4e to
eb93420
Compare
eb93420 to
8fd8978
Compare
9e35700 to
497d0d8
Compare
5e2c7bc to
14e2faa
Compare
14e2faa to
c2eea91
Compare
c2eea91 to
fb6a457
Compare
|
@kkimurak Since GitLab version 19 (see #3250) requires at least PostgreSQL version 17, I would very much like to consider this PR. Since I am not yet satisfied with the current state of the PR, I would modify it as follows:
What do you think? |
58ebee9 to
0ffee13
Compare
kkimurak
left a comment
There was a problem hiding this comment.
@sachilles Thank you for your work and sorry for delay, generally looks good to me.
I found some mistake in my code. I don't think these will be a problem, but I'll correct them just in case.
| NODE_ENV=production \ | ||
| NO_SOURCEMAPS=true | ||
| NO_SOURCEMAPS=true \ | ||
| # v18.5.2 : minimum = 16.5, maximum = 17.x (currently 17.6, is 170006) |
There was a problem hiding this comment.
Current postgresql 17.x release is 17.10 (170010) so my comment in code is stale a bit ((currently 17.6, is 170006)). If you find future maintenance troublesome, you might consider deleting the line.
$ docker run --rm -d --name psql17_test kkimurak/sameersbn-postgresql:17-20260521
b41212df4b1843b50091f6d452665847e3decc4f89dd2e9cff87af18077ab753
$ docker exec -it -u postgres psql17_test psql -h localhost -c 'SHOW server_version_num;'
server_version_num
--------------------
170010
(1 row)| # v18.5.2 : minimum = 16.5, maximum = 17.x (currently 17.6, is 170006) | |
| # v18.x : minimum = 16.5, maximum = 17.x (currently 17.10, is 170010) |
There was a problem hiding this comment.
Took your comment and since rebased onto branch upgrade-to-19.0.0 adapted your suggestion for GitLab v19.x.
…greSQL requirements
0182f47 to
c2b0e2d
Compare
Apply suggestion from @kkimurak. Co-authored-by: KIMURA Kazunori <33391846+kkimurak@users.noreply.github.com>
|
@kkimurak Thanks for your additional review! |
kkimurak
left a comment
There was a problem hiding this comment.
My home wired network connection is unavailable until the end of the month, and I only have a slow, data-limited connection, so I can't even fetch GitLab codebase and therefore can't build and test the image.
Anyway, from what I've quickly checked, it looks good to me.
Since PostgreSQL v18 was already published we need to provide a suitable postgresql client as well.
However, following the requirements for GitLab CE and in particular for PostgreSQL (see https://docs.gitlab.com/18.5/install/requirements/#postgresql) we should remove all clients for PostgresSQL versions smaller than 16.