From: Paul Ramsey Date: Sun, 29 Jul 2001 17:18:47 +0000 (+0000) Subject: Added section on upgrading. X-Git-Tag: pgis_0_6_0~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51ce638c151f5a1d5f34c576826924b658d0cb36;p=postgis Added section on upgrading. git-svn-id: http://svn.osgeo.org/postgis/trunk@42 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/README.postgis b/README.postgis index 4c5b6508c..b34dccd20 100644 --- a/README.postgis +++ b/README.postgis @@ -47,6 +47,22 @@ To run some regression tests, use 'make test'. The results will be output to tests/output.log and compared to tests/expected.log. +UPGRADING: + +Upgrading PostGIS can be tricky, because the underlying C libraries which +support the object types and geometries may have changed between versions. +To avoid problems when upgrading, you will have to dump all the tables +in your database, destroy the database, create a new one, upload the +new postgis.sql file, then upload your database dump: + + pg_dump -t "*" -f dumpfile.sql yourdatabase + dropdb yourdatabase + createdb yourdatabase + psql -f postgis.sql -d yourdatabase + psql -f dumpfile.sql -d yourdatabase + vacuumdb -z yourdatabase + + USAGE: Try the following example SQL statements: