Alternatively, you can use the section Upgrade PostgreSQL
of How to upgrade MAAS adjusting it with the versions 12/14 and using snap commands to start/stop maas in case you installed maas with snap.
1 Like