Fixes #27540 - handle remote postgresql in upgrades
When the postgresql is remote, it shouldn't be started.
Fixes #27540 - handle remote postgresql in upgrades
When the postgresql is remote, it shouldn't be started.