跳至內容

RDS Postgres reg data types and extensions

0

Q1 - As per the upgrade documentation reg* data types except regclass and regtype needs to be removed, what are the other reg* type class supported in postgres? And by remove what data types should be used? Does it mean if these data types are used in any tables, the columns data type needs to be modified? Any example shared would be helpful.

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.PostgreSQL.html

Q2 - When extensions are upgraded, is there any downtime? Any sessions using the extenions will they error or no issues and new sessions will start using new version after upgrade?

已提問 2 年前檢視次數 471 次
1 個回答
0

The reg* data types in PostgreSQL are used to represent regular expressions data types. These data types include retype, regclass etc. This is a PostgreSQL feature, refer pgsql documentation.

Before attempting a major version upgrade of your PostgreSQL database on Amazon RDS, you should remove  or migrate any data stored in the reg* data types that are not supported by the “pg_upgrade” utility. AWS documentation provides the sql statement which can be used to understand if any un-supported reg* data-types are being used.

Most of the Postgresql Extensions are generally not upgraded alongside the db engine major upgrade. Refer documentation It's essential that you ensure compatibility of the pg extensions with the new PostgreSQL version and your application code. It's recommended to schedule a maintenance window to upgrade the extensions and perform any necessary testing or application changes to ensure a smooth transition. Post upgrade, new sessions will automatically use the upgraded extension versions.

AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。