Changes between Version 23 and Version 24 of UsersWikiWinUpgrade
- Timestamp:
- 07/24/13 17:07:54 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiWinUpgrade
v23 v24 4 4 You need to do a hard upgrade if either: 5 5 * You are using a pre-alpha release of a major release, like pre-release PostGIS 2.0. 6 * You are upgrading from one major version to another, such as 0.* or1.* to 2.*.6 * You are upgrading from one major version to another, such as 1.* to 2.*. 7 7 8 8 1. Create a backup of your postgis database as usual. You can do this with pg_dump as the instructions describe or !PgAdmin III by right-clicking on the database -> Backup. Make sure to use "Custom" backup for format if you are using !PgAdmin III. … … 31 31 set PGPASSWORD=yourpasswordhere 32 32 set THEDB=mydb 33 set PGINSTALL=C:\Program Files (x86)\PostgreSQL\9.1 34 REM note the below example is if you are on 32-bit windows choose which install path makes most sense 35 REM set PGINSTALL=C:\Program Files\PostgreSQL\9.1\ 36 set PATH=%PATH%;"%PGINSTALL%\bin\" 37 perl utils/postgis_restore.pl "mydb.backup" | psql %THEDB% 2> errors.txt 33 set BACKUPFILE=mydb.backup 34 set PGINSTALL=C:\Program Files\PostgreSQL\9.2 35 set PATH=%PATH%;"%PGINSTALL%\bin" 36 perl "%PGINSTALL%\utils\postgis_restore.pl" "%BACKUPFILE%" | psql %THEDB% 2> errors.txt 38 37 pause 39 38 }}}