Skip to content

Update DB multi-version upgrade psql installation

Nailia Iskhakova requested to merge tp-db-upgrade-job-postgres-install into master

What does this MR do and why?

Switch to install postgresql-client (about 10 Mb) instead of postgresql (about 200 Mb) since for psql import command having client is enough. This should both speed up the installation and reduce dependencies, as postgresql-client is light-weight.

gitlab-org/quality/engineering-productivity/master-broken-incidents#6238 (comment 1899645848)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. In Shell console validate that psql works with updated package:
       docker run -it  registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bookworm-ruby-3.1.patched-golang-1.21-rust-1.73-node-20.12- 
       postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-123-yarn-1.22-graphicsmagick-1.3.36 sh
        $ apt-get update -qq && apt-get install -y -qq postgresql-client
        $ psql --version
        # psql (PostgreSQL) 16.3 (Debian 16.3-1.pgdg120+1)

Testing

Edited by Nailia Iskhakova

Merge request reports