<div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I am trying to migrate my postgres/postgis instance from 2.0 to 2.2.2<br></div>The new  postgis.so library is in the right place and I found the right migration script postgis-2.0.0--2.2.2.sql.<br><br></div>I successfully upgraded three db instances by using the "ALTER EXTENSION postgis UPDATE TO '2.2.2';"  command, but it failed on one instance.<br><br></div><div>As far as I see, the problem might be that the postgis extension wasn't created using the "CREATE EXTENSION POSTGIS"  script, but maybe by some other methods.<br><br></div><div>If I try to create the extension, it fails saying "ERROR: type "spheroid" already exists"; if I try to upgrade it fails, saying that the extension postgis does not exist.<br><br></div><div>If I create a new db instance, create a new extension and then upgrade it to postgis 2.2. everything works fine.<br></div><div>Is a there  a way to sort it out?<br><br></div><div>Thanks and regards<br><br></div><div>Paolo<br><br>--<br></div><div><font size="1">Paolo Importuni<br></font></div><div><font size="1">Software Analyst and Developer<br></font></div><div><font size="1">Modena, Italy</font> <br></div></div>