<div dir="ltr"><div>Thanks for reply. The "pg_config --sharedir" is: /usr/share/postgresql/9.1 directory. </div><div>All files of the postGIS versions I installed are there (2.0.0alpha7SVN and 2.1.0). </div><div>
<br></div><div>
I tried renaming the file  postgis--2.1.0.sql to postgis--2.0.0alpha7SVN.sql but I get the same error message.</div><div><br></div><div>The database is big and I wish do the upgrade of postGIS without do backup and restore if it is possible.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/7 Paragon Corporation <span dir="ltr"><<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The safest is to do a backup and restore.  The restoration will use the<br>
newest postgis you have unless you pre-install a new db with CREATE<br>
EXTENSION postgis VERSION "something"<br>
<br>
<br>
Normally I'd advice to just copy the postgis--2.0.0-2.1.0.sql  to<br>
postgis--2.0.0alpha7SVN-2.1.0.sql and repeat your ALTER EXTENSION<br>
<br>
but I recall some major breaking changes (last minute ondisk I think)<br>
between the 2.0.0 beta1 and 2.0.0 beta2 that would necessitate a dump<br>
restore otherwise you'd run into issues down the line.<br>
<br>
Hope that helps,<br>
Regina<br>
<a href="http://www.postgis.us" target="_blank">http://www.postgis.us</a><br>
<a href="http://postgis.net" target="_blank">http://postgis.net</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:postgis-users-bounces@lists.osgeo.org">postgis-users-bounces@lists.osgeo.org</a><br>
[mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org">postgis-users-bounces@lists.osgeo.org</a>] On Behalf Of Sandro Santilli<br>
Sent: Thursday, November 07, 2013 4:57 PM<br>
To: PostGIS Users Discussion<br>
Subject: Re: [postgis-users] Error updating PostGIS<br>
<br>
On Thu, Nov 07, 2013 at 03:47:52PM -0600, Armando Pardo Zepeda wrote:<br>
> Please, I need help to update a database with a postgis version of<br>
> "POSTGIS="2.0.0alpha7SVN" to PostGIS 2.1.0 in Debian Wheezy<br>
><br>
> I already tried with:<br>
> ALTER EXTENSION postgis  UPDATE TO "2.1.0"  but it returns the error<br>
> message:<br>
> ERROR:  extension "postgis" has no update path from version<br>
> "2.0.0alpha7SVN" to version "2.1.0"<br>
<br>
See where you can go to from "2.0.0*":<br>
ls `pg_config --sharedir`/extension/postgis--2.0.0*<br>
<br>
--strk;<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
<br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>