sudo gitlab-ctl pg-upgrade

Category: GitLab

sudo gitlab-ctl pg-upgrade

Upgrade the bundled PostgreSQL major version

Upgrades the embedded PostgreSQL database to the next major version, which is required when a GitLab upgrade targets a newer Postgres. It stops services, migrates data, and restarts everything, so plan for downtime. Back up first with gitlab-backup create.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.