Postgres database upgrade failed (11.6 -> 13.7)

0

Postgres database upgrade failed (11.6 -> 13.7) with error: pg_restore: while PROCESSING TOC: pg_restore: from TOC entry 6052; 1259 720106 INDEX unq_nickname_ci dba pg_restore: error: could not execute query: ERROR: function public.unaccent(unknown, text) does not exist LINE 3: SELECT public.unaccent('public.unaccent', $1) -- schema-qua... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

After the first failed upgrade, the index and function were deleted, so they don't exist in the catalog, but subsequent upgrades still ends with the same error. Do you have any idea how to proceed?

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

Hi there,

Can you run this command and see which targets are available for your current version: aws rds describe-db-engine-versions

--engine postgres

--engine-version 11.6

--query "DBEngineVersions[].ValidUpgradeTarget[].{EngineVersion:EngineVersion}" --output text

Version 11.6 is currently not available on AWS so you may have to upgrade via the CLI, if you're not already. Follow this guide to ensure all requirements are met - https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.PostgreSQL.html#USER_UpgradeDBInstance.PostgreSQL.MajorVersion

The command to upgrade is seen when you expand the AWS CLI toggle as seen below: aws rds modify-db-cluster --db-cluster-identifier mydbcluster --engine-version new_version --allow-major-version-upgrade --no-apply-immediately

profile pictureAWS
支援工程師
Brandon
已回答 1 年前

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

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

回答問題指南