This topic describes the check report of a major engine version upgrade for an ApsaraDB RDS for PostgreSQL instance. This topic also describes the common errors included in the report and the solutions to these errors.
The check report is provided in Chinese and English.
Check items
If the check result in the upgrade check report is Failed, you can perform the following steps to view the details of the failure: Log on to the ApsaraDB RDS console, go to the Major Version Upgrade page, and then click View Information in the Report Content column. For more information, see Upgrade the major engine version.
The following section describes the information and common errors that a check report may contain.
Warnings
Content
During a major engine version upgrade of an RDS instance, the read-only time and the memory and disk resources of the RDS instance are affected by the number of its database objects. If the number of database objects is excessively large and the memory and disk resources are insufficient, the upgrade may fail. In this case, the system provides the recommended memory capacity, recommended minimum memory capacity, and recommended disk size on the Upgrade Check tab.
Recommended memory capacity: During a major engine version upgrade, the system can upgrade multiple databases of an RDS instance at the same time. If the memory capacity of an RDS instance is greater than or equal to the recommended memory capacity, the RDS instance is immediately upgraded to reduce the read-only time of the RDS instance.
Recommended minimum memory capacity: If the memory capacity of an RDS instance is greater than or equal to the recommended minimum memory capacity, the RDS instance is upgraded. However, the read-only time of the RDS instance may be extended because the system upgrades each database of the RDS instance in sequence.
Recommended disk size: During a major engine version upgrade, the system temporarily replicates all object definitions. This doubles the inode consumption. During the upgrade, if the disk size is less than the recommended disk size, the upgrade may fail.
Warnings and solutions
Disk warning
Format:
Total disk size: {*} GB; Used disk size: {*} GB; Used inode: {*}; bytes-per-nodes: {*}; Minimum disk size required for the upgrade: {*} GB
.Possible cause: The number of database objects is excessively large, which requires a large disk size.
Solution:
In blue-green deployment mode, you must specify a storage capacity for the new RDS instance that is greater than or equal to the minimum disk size required for an upgrade.
In local upgrade mode, you must expand the storage capacity of the RDS instance that you want to upgrade before the upgrade. The new storage capacity must be greater than or equal to the minimum disk size required for an upgrade. For more information, see Change instance specifications.
Memory warning
Format:
Current memory capacity: {*} GB; Recommended memory capacity: {*} GB; Minimum memory capacity: {*} GB
.Possible cause: The number of database objects is excessively large. Make sure that the memory resource of the RDS instance is sufficient. This helps reduce the read-only time of the RDS instance during an upgrade.
Solution:
In blue-green deployment mode, you must specify a storage capacity for the new RDS instance that is greater than or equal to the minimum disk size required for an upgrade.
In local upgrade mode, you must upgrade the specifications of the RDS instance if the memory capacity provided by the instance type is less than the recommended memory capacity. For more information, see Change instance specifications.
Subscription warning
Format:
The subscriber of replication slots resides on the RDS instance. To prevent data inconsistency, we recommend that you view related Alibaba Cloud documentation
.Possible cause: The subscriber of replication slots resides on the RDS instance. Execute the
SELECT * FROM pg_subscription;
statement to view the subscriber.Solution: For more information, see How do I handle the issue that the subscribed data is inconsistent after an upgrade?
Errors
Content
The system checks whether a redundant superuser account is created in the background or an invalid encryption method is configured for a standard account.
The system checks whether the upgrade check fails. If the upgrade check fails, the "pg_upgrade error log" error message is included in the check report.
The system checks whether the pgcrypto extension is installed in the pg_catalog schema.
Errors and solutions
Account error
Format:
Invalid super account: {*}; Invalid account: {*}. View related Alibaba Cloud documentation
.Possible cause: A redundant superuser account or abnormal standard accounts exist.
Solution:
Submit a ticket to Alibaba Cloud technical support to delete the redundant superuser account.
Reset the passwords of the abnormal standard accounts.
Upgrade check error
Format:
The pg_upgrade upgrade check fails. View "pg_upgrade error log" and "pg_upgrade-related files and errors"
.Possible cause: The upgrade check fails.
Solution: Resolve the log issue. View "pg_upgrade error log".
pgcrypto extension error
Format:
The pgcrypto extension is installed in the pg_catalog schema of the {*} database. View the related Alibaba Cloud documentation
.Possible cause: The major engine version upgrade fails because the pgcrypto extension is used to create functions that can be used only in later major engine versions in pg_catalog.
Solution: Delete the pgcrypto extension from each database and create the extension in a schema other than the pg_catalog schema.
pg_upgrade error log
Content
The system checks whether extensions and keywords that are incompatible with the new major engine version exist.
Common error
pg_upgrade -related files and errors
loadable_libraries.txt
This file contains the libraries that are incompatible with the new major engine version. You can identify incompatible extensions based on these libraries.
The following information describes the common incompatible extensions and solutions to the incompatibility issues:
tables_with_oids.txt
The system displays the tables that are created with the WITH OIDS
clause.