PostgreSQL versioning policy in Managed Service for Sharded PostgreSQL
This document describes a Managed Service for Sharded PostgreSQL lifecycle based on PostgreSQL major versions in Yandex Cloud. The policy is based on the PostgreSQL community's
Note
The new major version (New) becomes available shortly after its release by the PostgreSQL community
Terminology and lifecycle stages of PostgreSQL versions
In Managed Service for Sharded PostgreSQL, each major PostgreSQL version has the following 5-year lifecycle:
| Version stage | Description and key actions | Period1 |
|---|---|---|
New |
Latest version with long-term support (LTS). Recommended for all new projects. |
First year |
| Supported | Previous LTS version. Fully supported; allows creating new shards. Recommended for all projects. | Years two through four |
Deprecated |
Version nearing the end of its support period. Existing shards are operating normally. Six months before the end of support, an active notification effort starts about the need to update. From this point on, you cannot create new shards. | Fifth year |
| End of life (EOL) | Discontinued version. Shards still running this version get auto-updated to the latest supported version or stopped. | At the end of five years. |
1 The periods are relative to the major version release date. The exact status change dates are officially announced by the service.
Features for each version
Depending on the PostgreSQL version status, the following operations are available for specific Managed Service for Sharded PostgreSQL shards:
| Action | New |
Supported (Supported) |
Deprecated (Deprecated) |
End of life (EOL) |
|---|---|---|---|---|
| Creating new shards | ||||
| Recovery from a backup | ||||
| Use of existing shards | ||||
| Choice of the major version update window | N/A |
Warning
Long-term backups (LTR) created for versions close to EOL may not be available for restoration in Managed Service for PostgreSQL after that version is no longer supported. We recommend you to plan data migration before the end of the version lifecycle.
Key principles of the PostgreSQL versioning policy
The PostgreSQL versioning policy is based on the following key principles:
- Support duration: Each major version remains either
NeworSupportedfor four and a half years. - Incremental deprecation: In its fifth year, the version get the
Deprecatedstatus, and it becomes impossible to create new shards six months before the end-of-life date. - Active notification: Six months before
EOL, begins an active campaign to notify customers about the need to update. - End of life: On reaching
EOL(end of fifth year), shards running obsolete versions get **automatically updated ** to the latestSupportedversion. If the update is not possible for technical reasons, the shard will be stopped. Before it stops, the final backup will be automatically uploaded to the customer's Object Storage bucket. After the shard is stopped and the backup is uploaded, the shard will be deleted.
Update policy
- Minor updates (within the major version, e.g., 15.1 → 15.2) are installed automatically as part of maintenance performed during the maintenance window specified for the shard (PostgreSQL cluster), or at the customer's request. These updates contain security and bug fixes. A minor update requires a short, successive reboot of the cluster hosts.
- Major updates (changes of the major version, e.g., 15.x → 16.x) are user-initiated, except for automatic updates for versions that have reached EOL. We highly recommend you to update before the EOL date.
Automatic update and stopping procedure
For shards still running versions with expired support (EOL), Managed Service for Sharded PostgreSQL initiates an automatic update.
- Notification: Owners of shards based on
Deprecatedversions will get a series of official email notifications: the first one six months beforeEOL, and then 90 and 30 days before the scheduled start date of the auto-update campaign. - Automatic update: Three months before
EOL, Managed Service for Sharded PostgreSQL begins the process of auto-updating shards that have not been updated by their owners. - Stopping as a final measure: If an automatic update is not possible, Managed Service for Sharded PostgreSQL will stop a specific shard. Before it stops, the final backup will be created and saved in the customer's bucket.
- Data access: Once a shard is stopped, responsibility for the data passes to the client. You can restore the data only in your own infrastructure, e.g., Yandex Compute Cloud VMs, using the backup you export.
Notifications
Managed Service for PostgreSQL provides these early upcoming update notifications:
- When switching to
Deprecated(prohibits creating new shards). - Six months ahead of
EOL(start of active notification phase). - Start of the automatic update campaign: 90 and 30 days before the start of the campaign.
Warning
We recommend you to schedule shard updates in advance before you get your auto-update notifications. This will allow you to choose a convenient time for migration and avoid the risks associated with automatic updates.
Versioning schedule
The current status of major PostgreSQL versions is based on the official support schedule
| Version2 | New | Supported | Deprecated | End of life (EOL) |
|---|---|---|---|---|
| PostgreSQL 18 | 2025–2026 | 2025–2029 | 2030 | End of 2030 |
| PostgreSQL 17 | — | 2024–2028 | 2029 | End of 2029 |
| PostgreSQL 16 | — | 2023–2027 | 2028 | End of 2028 |
| PostgreSQL 15 | — | 2022–2026 | 2027 | End of 2027 |
| PostgreSQL 14 | — | — | 2026 | End of 2026 |
2 Exact dates of transitions between statuses will be announced additionally. The EOL dates match the PostgreSQL community end of support dates.