PostgreSQL - Upgrade
PaaS upgrade workflow
Request
The upgrade of a PostgreSQL PaaS is the responsibility of cegedim.cloud and can be requested via a request ticket submitted from ITCare, specifying a time slot for the operation.
Process
The upgrade of a PostgreSQL deployment (standalone or high availability) takes place in two fully automated steps:
Upgrade the Operating system first if required
Multiple upgrades depending on the scenario: Debian 10 → Debian 11 → Debian 12 → Debian 13
Upgrade of the PostgreSQL engine in the target version
Depending on the source and target versions of PostgreSQL, it may be necessary to first migrate the operating system to a version supported by cegedim.cloud (for more information, check OS / PostgreSQL support matrix).
Impacts
The duration of an upgrade is variable depending on:
The configured cpu and ram resources
The amount of data whose headers must be modified by the PostgreSQL engine.
The amount of data to be reindexed following a change of C library, after an OS upgrade.
The amount of data on which to activate the checksum (data page checksum has been activated since PostgreSQL PaaS 12)
The amount of data to be vacuumed.
The amount of data to be backed up (a full backup is performed after migration process).
The backup mode:
Point-in-time Recovery (PITR) from PostgreSQL 12 and higher.
The "dump" backup mode disappears in favour of the "PITR" and is only used in versions of PostgreSQL lower than version 12.
Time references
As an average guideline, durations for each step of an in-place upgrade of a 100 GB pgbench database, with a single Debian upgrade:
Debian upgrade (per operating system upgrade)
10 minutes
PostgreSQL reindexing
5 minutes
PostgreSQL upgrading
1 minute
PostgreSQL checksum
3 minutes
PostgreSQL vacuuming
1 minute
PostgreSQL full backup (PITR mode)
16 minutes
Total, standalone instance
36 minutes
PostgreSQL synchronizing (high availability only: the replica is upgraded and synchronized with the leader)
4 minutes
Total, high availability
40 minutes
Each additional operating system upgrade (see the supported upgrade paths below) adds about 10 minutes.
OS / PostgreSQL support matrix
Linux distributions supported by cegedim.cloud depending on the PostgreSQL version:
PostgreSQL 12
Debian 10
PostgreSQL 13
Debian 11
PostgreSQL 14
Debian 11
PostgreSQL 15
Debian 11
PostgreSQL 16
Debian 12
PostgreSQL 17
Debian 13
PostgreSQL 18
Debian 13
Supported PostgreSQL upgrade paths
If the operating system is upgraded, it may require a complete reindexing (also handled by cegedim.cloud) due to changes in the C library when the operating system is upgraded.
Depending on the amount of data, this operation may take some time.
Below are the upgrade paths supported by cegedim.cloud:
PostgreSQL 12
✅*
Debian 10 → Debian 11
✅*
Debian 10 → Debian 11
✅*
Debian 10 → Debian 11
✅**
Debian 10 → Debian 12
✅***
Debian 10 → Debian 13
✅***
Debian 10 → Debian 13
PostgreSQL 13
✅
✅
✅*
Debian 11 → Debian 12
✅**
Debian 11 → Debian 13
✅**
Debian 11 → Debian 13
PostgreSQL 14
✅
✅*
Debian 11 → Debian 12
✅**
Debian 11 → Debian 13
✅**
Debian 11 → Debian 13
PostgreSQL 15
✅*
Debian 11 → Debian 12
✅**
Debian 11 → Debian 13
✅**
Debian 11 → Debian 13
PostgreSQL 16
✅*
Debian 12 → Debian 13
✅*
Debian 12 → Debian 13
PostgreSQL 17
✅
* An operating system upgrade is required
** Two operating system upgrades are required
*** Three operating system upgrades are required
Last updated

