Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to upgrade Postgres 15 to Postgres 16 (Cloud SQL)

The upgrade simply fails with the error "Failed to upgrade ..." without any errors.

Is there a way to investigate this?

2 4 435
4 REPLIES 4

Hello @jaebum  ,Welcome on Google Cloud Community.

Highly recommend to check logs from Logs Explorer with "Stream logs" and filters enabled. It will allows you to track changes near in live view. 

logs query:

resource.type="cloudsql_database"
resource.labels.database_id="webaap-wordpress-load:test"


 logs

DamianS_0-1718267567910.png

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

Thanks - only relevant error I could find around the upgrade time was:

user=cloudsqladmin ERROR: function postgis_full_version() does not exist at character 8

Not sure what this mean though 😞

Gemini says that this is related with CloudSQL extension, however it says nothing to me. Please see response :

DamianS_0-1718297965374.png

 

Experiencing same issues reported by @jaebum.

The error related to postgis version seems particularly concerning, because it's being reported on databases that do not have the extension installed.