Latest released version is PostGIS 2.0.3 (for PostgreSQL 8.4-9.2 32-bit and 9.0-9.2 64-bit) is on Stackbuilder and also available at PostGIS Windows download. Package includes:
Warning: There was a bug in packaging of all the 64-bit and the PostgreSQL 9.2 (both 32-bit and 64-bit). If you installed a version of PostGIS 2.0.3 without a -2.exe or -2.zip you should reinstall again or replace the bin/shp2pgsql,pgsql2shp,raster2pgsql (and lib/postgis.dll, lib/rtpostgis.dll) with the one in the -2.zip available on PostGIS Windows download.
The simplest way to get PostGIS on Windows is using the EnterpriseDB build and StackBuilder. Refer to An Almost Idiot’s Guide Installing PostGIS on Windows
If you want to use the zip, setup, and setup source files directly they are available:
Zip and Installer files The .zip files are just the binaries you can copy into your PostgreSQL installation and then enable in each database as usual. The exe are standard windows setup for both 32-bit and 64-bit PostgreSQL.
Source Setup files The source setup files are useful if you want to build your own NSIS installer or create a single setup for your own project that also installs PostGIS. The Binary zip files should contain all the binary files you need to customize your own setup minus the documentation. You can also just extract the .exe setup file to get the binaries, but the extract sometimes gets mangled leaving out some of the postgis-gui subfolders.
If you are more adventurous, and risk-seeking you can partake in our experimental windows binaries of PostGIS built automatically by Winnie whenever there is a change in any of the PostGIS 2.0 and 2.1 branches. These are especially useful for testing out new features or if you are badly in need of a bug fix that has not been released yet.
If you don’t want to risk messing up an existing windows install or aren’t allowed to write to the registry , we’d suggest using the companion PostgreSQL EDB binaries-only binaries which don’t require installation. Setup is detailed in Starting PostgreSQL in windows without install.
pgRouting Package 2.0.0dev
Only for PostgreSQL 9.1 (64-bit), 9.2 (32-bit /64-bit), 9.3beta1 (32-bit / 64-bit) refer to getting started guide for more details
Will work with PostGIS 2.0 or 2.1
PostGIS is an optional extension that must be enabled in EVERY database you want to use it in. If you are running PostgreSQL 9.1+ you can use:
CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology; CREATE EXTENSION postgis_tiger_geocoder;
postgis_tiger_geocoder extension file option only available for PostGIS 2.1+.
If you are running PostgreSQL 9.2 or higher and have installed PostGIS 2.0 or 2.1 (you can download and extract into your PostgreSQL install folder the pgRouting 2.0dev package and do)
CREATE EXTENSION pgrouting;
See the install section for more guidance.