From: Regina Obe Date: Fri, 23 Mar 2012 13:09:53 +0000 (+0000) Subject: flesh out upgrade a bit. X-Git-Tag: 2.0.0rc1~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0c7ea2a14343c2106dacbbbf8e70998c0053276;p=postgis flesh out upgrade a bit. git-svn-id: http://svn.osgeo.org/postgis/trunk@9533 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/installation.xml b/doc/installation.xml index b4e6ad52a..e0e516c46 100644 --- a/doc/installation.xml +++ b/doc/installation.xml @@ -920,6 +920,13 @@ Failed: 0 psql -d [yourdatabase] -f topology/topology_comments.sql + + If you plan to restore an old backup from prior versions in this new db, run: + psql -d [yourdatabase] -f legacy.sql + There is an alternative legacy_minimal.sql you can run instead which will install barebones needed to recover tables and work with apps like MapServer + and GeoServer. If you have views that use things like distance / length etc, you'll need the full blown legacy.sql + + You can later run uninstall_legacy.sql to get rid of the deprecated functions after you are done with restoring and cleanup. @@ -950,6 +957,11 @@ Failed: 0 psql -d [yourdatabase] -c "CREATE EXTENSION postgis_topology;" + + If you plan to restore an old backup from prior versions in this new db, run: + psql -d [yourdatabase] -f legacy.sql + + You can later run uninstall_legacy.sql to get rid of the deprecated functions after you are done with restoring and cleanup. @@ -1136,7 +1148,7 @@ pretty_address ALTER EXTENSION postgis_topology UPDATE TO "&last_release_version;"; If you get an error notice something like: No migration path defined for ... to &last_release_version; - Then you'll need to backup your database, create a fresh one as defined in and then restore your backup ontop of this new database. + Then you'll need to backup your database, create a fresh one as described in and then restore your backup ontop of this new database. You might get a message that postgis extension already installed which you can safely ignore. If you installed PostGIS originally without a version specified, you can often skip the reinstallation of postgis extension before restoring since the backup just has CREATE EXTENSION postgis and thus picks up the newest latest version during restore. . @@ -1193,7 +1205,7 @@ ALTER EXTENSION postgis_topology UPDATE TO "&last_release_version;"; Do a fresh install of PostGIS in a new database -- we'll refer to this database as newdb. - Please refer to for + Please refer to and for instructions on how to do this.