wiki:UsersWikiWinUpgrade

Version 1 (modified by robe, 12 years ago) ( diff )

CLEAN HARD UPGRADE ON WINDOWS

General Hard upgrade instructions are documented in PostGIS Hard Upgrade

You need to do a hard upgrade if you are using a pre-alpha release of a major release such as the case with PostGIS 2.0 or you are upgrading from one major version to another e.g 0.*, 1.* —> 2.*

When prompted to do so, choose to add Perl to your environment path and map to .pl scripts.

Note that ActivePerl also has packages for MacOS, Linux, but is generally not necessary for those platforms since they come prepackaged with perl.

  • Create an upgrade.bat file with contents something like this:
    set PGPORT=5433
    set PGHOST=localhost
    set PGUSER=postgres
    set PGPASSWORD=yourpasswordhere
    set THEDB=dnddts20
    set PGINSTALL=C:\Program Files (x86)\PostgreSQL\9.1
    REM note the below example is if you are on 32-bit windows choose which install path makes most sense
    REM set PGINSTALL=C:\Program Files\PostgreSQL\9.1\
    set PGADMIN=%PGINSTALL%\pgAdmin III
    set PGBIN=%PGINSTALL%\bin\
    set PGLIB=%PGINSTALL%\lib\
    set POSTGISVER=2.0
    set PATH=%PATH%;"%PGINSTALL%\bin\"
    perl utils/postgis_restore.pl "dnddts_daily.backup" | psql %THEDB% 2> errors.txt
    pause
    
  • Right mouse click on the .bat file (you may have to choose — Run as Administrator)
Note: See TracWiki for help on using the wiki.