Original post was not an aswer and is replaced by the comment above
Why does the major version update fail when postgis is installed
Richard Huesken
1
Reputation point
The serverlogs show the following error when doing a major version upgrade from postgres version 14 to version 16. Installed postgis, postgis_raster and postgis_sfcgal.
ERROR
0A000
SELECT public.postgis_extensions_upgrade()
UTC-6783af44.35b-azuresu-msg_dev-ERROR: 0A000: updating an extension to a specific version is not supported