Hi @Tino Merl
As you mentioned, updating state was initiated by a runbook to scale down the Database after a heavy load of data processing.
In those case, Recovery time depends on how recent the last checkpoint was and the amount of data inside those log files, that said, the best practice is that application developer needs to avoid log running transactions and tune checkpoint frequency to avoid long recovery.
What causes long recovery on Azure Database for PostgreSQL
Recent checkpoints are critical for fast server recovery. Once a restart happens, either it was a new instance (failover to healthy instance) or same instance (in-place restart) will connect to disk that has all logs, all WAL logs after the last successful checkpoint need to be applied to the data pages before the server starts to accept connections again. Those logs are called REDO logs and will be applied via the recovery operation.
While performing upscale or descale, please Ensure no long running transactions happening on the server and Stop or reduce the application intensity workload.
If your server is still stuck in updating state, as Oury mentioned, please open a support ticket and share the case number so we can get this issue fixed at the back end.
Thank you!