You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/managed-databases-for-postgresql-and-mysql/how-to/upgrade-version.mdx
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@ The version upgrade is only available for:
34
34
35
35
## How to remove incompatible data types
36
36
37
-
Before upgrading to a newer major PostgreSQL version, you must remove any data types incompatible with `pg_upgrade`.
37
+
Before upgrading to a newer major PostgreSQL version, you must remove any data types incompatible with the `pg_upgrade` tool.
38
38
39
39
The `reg*` data type, for example, cannot be persisted by `pg_upgrade`.
40
40
41
-
Run the following command in your Database Instance to remove all instances of the `reg*` data type:
41
+
Run the following command in your Database Instance to identify all instances of the `reg*` data type:
42
42
43
43
```sql
44
44
SELECTcount(*) FROMpg_catalog.pg_class c, pg_catalog.pg_namespace n, pg_catalog.pg_attribute a
@@ -54,6 +54,8 @@ SELECT count(*) FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n, pg_catalo
54
54
ANDn.nspname NOT IN ('pg_catalog', 'information_schema');
55
55
```
56
56
57
+
We recommend you remove the identified instances before continuing.
58
+
57
59
## How to upgrade the engine version
58
60
59
61
1. Click **PostgreSQL and MySQL** under **Managed Databases** on the side menu. A list of your Database Instances displays.
@@ -67,19 +69,19 @@ SELECT count(*) FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n, pg_catalo
67
69
<Messagetype="important">
68
70
When you upgrade to a new version:
69
71
- There is no synchronization between the source and target Database Instances. To avoid data loss, we recommend you stop any write operations running on your applications during the upgrade. If you let them run during the process, the data will be stored only in the source Database Instance.
70
-
- Your Database Instances in [High Availability (HA)](/managed-databases-for-postgresql-and-mysql/concepts/#high-availability) mode will migrate to a standalone Instance. To maintain your HA mode, you must manually [enable HA](/managed-databases-for-postgresql-and-mysql/how-to/enable-high-availability) after the upgrade is complete.
72
+
- Your Database Instances in [High Availability (HA)](/managed-databases-for-postgresql-and-mysql/concepts/#high-availability) mode will migrate to a standalone Instance. To maintain your HA mode, you must manually [enable HA](/managed-databases-for-postgresql-and-mysql/how-to/enable-high-availability) after the upgrade is complete. The same applies when upgrading [Read Replicas](/managed-databases-for-postgresql-and-mysql/how-to/create-read-replica).
71
73
- Database Instance [advanced settings](/managed-databases-for-postgresql-and-mysql/how-to/configure-advanced-settings) are synced as long as they are still available on the new database engine version.
72
74
</Message>
73
75
74
76
<Messagetype="tip">
75
-
Follow the [migrating endpoints via the CLI](/managed-databases-for-postgresql-and-mysql/api-cli/migrating-endpoints/) procedure to quickly migrate your endpoints. Before doing so, we recommend running a dry-run of the Database Instance upgrade to validate the process.<br /><br />
76
-
You can use the same CLI command to revert the endpoint migration anytime. <br /><br />
77
-
Keep in mind that reverting the endpoint will not affect the data stored on the databases. This means that if some entries were added to the upgraded database, they will not be added back to the old version when you change the endpoints.
77
+
Before performing an engine upgrade migration, we recommend testing the process in a "dry-run". This allows you to estimate the migration time and verify its success without affecting your source instance. To do so:
78
+
- Run the migration without checking the "migration endpoint" flag. This will simulate the migration process. If the test is successful, you can then proceed with the actual migration. Follow the [migrating endpoints via the CLI](/managed-databases-for-postgresql-and-mysql/api-cli/migrating-endpoints/) procedure to migrate your endpoints after the upgrade. You can use the same CLI command to revert the endpoint migration anytime.
79
+
- Keep in mind that reverting the endpoint will not affect the data stored on the databases. This means that if some entries were added to the upgraded database, they will not be added back to the old version when you change the endpoints.
78
80
</Message>
79
81
4. Click **Upgrade version**. A new Database Instance is created.
80
82
81
83
<Messagetype="important">
82
-
- In PostgreSQL major upgrades, the `pgaudit` and `pg_stat_statements`[engine extensions](/managed-databases-for-postgresql-and-mysql/reference-content/postgresql-extensions) will be removed. You must reinstall these extensions once the upgrade is complete.
83
-
- If you are upgrading to PG16, we recommend you [reset your user passwords](/managed-databases-for-postgresql-and-mysql/how-to/add-users) from the console or using `psql`, [PostrgreSQL's CLI](https://docs.postgresql.fr/13/app-psql.html). You must create a new password that follows the **SCRAM-SHA-256** format. The previous versions' password format is no longer supported in PG16.
84
+
- In PostgreSQL major upgrades, the `pgaudit` and `pg_stat_statements`[engine extensions](/managed-databases-for-postgresql-and-mysql/reference-content/postgresql-extensions) will be removed. You must reinstall these extensions on each database they are installed once the upgrade is complete.
85
+
- If you are upgrading to PG16, we recommend you [reset your user passwords](/managed-databases-for-postgresql-and-mysql/how-to/add-users) from the console or using `psql`, [PostrgreSQL's CLI](https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-META-COMMAND-PASSWORD). PG16 uses the **SCRAM-SHA-256** format to store passwords. The previous versions' password format is no longer supported in PG16. You can re-save your passwords after the upgrade and they will be stored in the correct format automatically.
0 commit comments