Yandex Cloud
Search
Discuss with expertTry 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
    • PostgreSQL versioning policy
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Maintenance window
  • Maintenance workflow
  • How maintenance impacts a cluster
  1. Concepts
  2. Maintenance

Maintenance in Managed Service for PostgreSQL

Written by
Yandex Cloud
Updated at June 11, 2026
  • Maintenance window
  • Maintenance workflow
  • How maintenance impacts a cluster

Maintenance in Managed Service for PostgreSQL includes:

  • Installing minor updates and security fixes for the DBMS and/or connection pooler.
  • Updating the host OS and other underlying software.
  • Scheduled automatic storage expansion.
  • Other maintenance activities.

A major DBMS version update is not part of maintenance. For more information about major version changes, see PostgreSQL version update.

Maintenance windowMaintenance window

You can set your preferred maintenance start time using the Yandex Cloud interfaces (management console, CLI, Terraform, and API) when creating or updating a cluster:

  • The At any time option (default) allows performing maintenance at any time.
  • The By schedule option allows you to select the day of the week and UTC time when the maintenance will be performed. For example, you can choose a time when the cluster is least loaded.

In the management console, you select the maintenance start time as an hour interval. In other interfaces, you specify this interval by its sequence number, from 1 to 24.

For example, to start a maintenance session from 00:00 to 01:00, enter 1; from 04:00 to 05:00, 5.

Note

To view maintenance task information, you need the managed-postgresql.maintenanceTask.viewer role or higher.

To manage maintenance tasks, you need the managed-postgresql.maintenanceTask.editor role or higher.

Maintenance workflowMaintenance workflow

In Managed Service for PostgreSQL single-host clusters, a master host undergoes maintenance. Therefore, it may become unavailable in case it is restarted.

In multi-host clusters, the maintenance is run as follows:

  1. Replica hosts undergo maintenance one by one. The replicas are queued randomly. If a replica needs to be restarted during maintenance, it will become unavailable.

  2. Master host undergoes maintenance and gets updated. If the master host needs to restart and becomes unavailable, one of the replicas will assume its role.

    If you access a cluster using the FQDN of the master host, the cluster may become unavailable. To ensure uninterrupted operation of your application, list all the hosts and specify target_session_attrs when connecting to the cluster. Read more.

How maintenance impacts a clusterHow maintenance impacts a cluster

Depending on its type, maintenance can impact your cluster as follows:

  • Show little to no impact on database users.
  • Break database connections in place, forcing clients to re-establish their connections.
  • Make your cluster read-only for a while.
  • Make your cluster completely unavailable for a while due to a reboot.
  • Cause master host failover in the cluster, making the database read-only for a while.

Was the article helpful?

Previous
Replication
Next
Supported clients
© 2026 Direct Cursus Technology L.L.C.