Upgrade Major Version
PostgreSQL postgres upgrade major version database migration pg_upgrade downtimeUpgrade process
Section titled “Upgrade process”While new cloud projects ship with Postgres 14 by default, versions 15, 16, and 17 are also supported. To change your major version you can go to Settings -> Database, select the new major version and start the process:

After starting the process you can follow it on the same page:

Finally, you can confirm the upgrade by executing the SQL query SELECT version();

Projects with connected repos
Section titled “Projects with connected repos”This process can only be triggered from the dashboard. If you have a project with a connected repository and want to upgrade postgres to a new major version you will have to follow the steps below:
- Upgrade the major version using the dashboard
- Run
nhost config pullor edit thenhost.tomlby hand. - Push to git (this step should be a NOOP and can be skipped)
If you attempt to change major versions via a deployment the deployment will fail. This is done on purpose to avoid unintended upgrades which can lead to downtime.