I tried searching for brew download formula for a spesific version of postgis, but could not find one. I tried running following
ALTER EXTENSION postgis UPDATE TO "2.4.4";
It gives following error
ERROR: extension "postgis" has no update path from version "3.0.1" to version "2.4.4" SQL state: 22023
Any other possible way?