Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for PostgreSQL
  • Getting started
    • Resource relationships
    • Planning a cluster topology
    • High availability clusters
    • Networking in Managed Service for PostgreSQL
    • Quotas and limits
    • Storage in Managed Service for PostgreSQL
    • Backups
    • Assigning roles
    • Managing connections
    • Replication
    • Maintenance
    • Supported clients
    • PostgreSQL settings
    • Indexes
    • SQL command limits
    • Upgrading the PostgreSQL major version
    • Versioning policy PostgreSQL
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  1. Concepts
  2. Upgrading the PostgreSQL major version

Upgrading the major PostgreSQL version in Yandex Managed Service for PostgreSQL

Written by
Yandex Cloud
Updated at April 13, 2026

To upgrade the major PostgreSQL version in Managed Service for PostgreSQL, select a suitable time and version and start the update.

To upgrade a major version, the following must be free:

  • For disks with a capacity of 100 GB or less: At least 10% of the storage volume.
  • For disks with a capacity of over 100 GB: At least 10 GB.

Before upgrading, we recommend creating a backup of the cluster and then testing the update on a test cluster to ensure it runs correctly. You can deploy the test cluster from the backup.

You can only upgrade a major version step by step, one version at a time.

For example, if you need to update a cluster from version 14 to 16, first update it from 14 to 15, and then from 15 to 16.

Note

Upgrade from a standard version to a 1С:Enterprise version (e.g., 14 to 14-1c) is not supported.

The update process runs automatically and includes the following steps:

  1. Checking that the upgrade is possible.

  2. Upgrading extensions.

  3. Preparing the master:

    1. Disabling autovacuum.
    2. Updating the statistics collection settings.
    3. Stopping the master.
  4. Configuring the master settings.

  5. Performing a binary update of the master.

  6. Checking the master after the binary update and updating the configuration.

  7. Starting the master in restricted mode.

  8. Collecting reduced statistics using the vacuumdb command with the --analyze-in-stages and --all options. The command runs with a timeout of 300 seconds.

    Statistics collection is performed in three stages. In the first stage, preliminary statistics are collected with default_statistics_target=100. In the second and third stages, full statistics are collected.

  9. Sequential replica update. The order of replica updates is determined randomly.

  10. Switching the master to normal mode.

The master is unavailable for reads and writes during the major version update. No role switching occurs. Each replica is only unavailable for reads during its own update. As a result, the cluster is unavailable for writes during the update. Read availability depends on the number of hosts in the cluster:

  • A cluster with a single host is unavailable for reads.
  • A cluster with two hosts is available for reads during the master update but unavailable during the replica update.
  • A cluster with three or more hosts is always available for reads.

How long an upgrade takes depends on the number of affected databases and the number of objects in each of them. The more databases and objects there are, the longer your upgrade will take.

To learn about updates within the same version and host maintenance, see Maintenance.

Was the article helpful?

Previous
SQL command limits
Next
Versioning policy PostgreSQL
© 2026 Direct Cursus Technology L.L.C.