We had a routine database version upgrade from Postgres 15 to Postgres 17. 21 instances upgraded without issues but one did not.
Instance information:
Symptoms:
After initiating the upgrade ~15min passed and then the error was displayed in Operations and logs:
The instance itself shows that it is under maintenance.
Troubleshooting:
Edit: The second restore attempt failed with the same error in Operations and logs after 2 hours.
Hi @a-korolkovs,
It looks like your Cloud SQL instance got stuck due to a few potential issues, according to the troubleshooting documentation. Here are some common reasons this might happen:
You may try the following options to resolve the issue:
ROW_FORMAT=COMPRESSED
. This stores the temporary tables in file-per-table tablespaces within the temporary file directory, which can help reduce the load on the instance. However, note that this might come with a performance tradeoff, as creating and removing these tablespaces can be slower.ibtmp1
file is by restarting the service, which can help clear up any excess temporary data that’s clogging up the system.Hope this helps!