[pin the PostgreSQL version](https://docs.gitlab.com/omnibus/settings/database.html#pin-the-packaged-postgresql-version-fresh-installs-only)
if needed for compatibility or test environment reasons.
[Fault tolerant and Geo installations require additional steps and planning](../../administration/postgresql/replication_and_failover.md#upgrading-postgresql-major-version-in-a-patroni-cluster).
Because of underlying structural changes, the running PostgreSQL process
**_must_** be restarted when it is upgraded before running database
migrations. If automatic restart is skipped, you must run the following