From 0454909f1bac40cf143a958ca08a60ac3898286c Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Sat, 11 May 2013 02:32:16 +0000 Subject: [PATCH] repeat create extension instructions in short -- heck its shorter than the crap we have listed. Also correect compile instructions (with-raster and -with-topology no longer need stating) get rid of other obsolete statements git-svn-id: http://svn.osgeo.org/postgis/trunk@11414 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/installation.xml | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/doc/installation.xml b/doc/installation.xml index a66fcaeb0..7ef6054cb 100644 --- a/doc/installation.xml +++ b/doc/installation.xml @@ -8,18 +8,27 @@ Short Version - The raster support is currently optional, but installed by default. For installing using the PostgreSQL 9.1+ extensions model it is required. - Please refer to if you are using PostgreSQL 9.1+. - All the .sql files once installed will be installed in share/contrib/postgis-&last_release_version; folder - of your PostgreSQL install - The postgis_comments.sql, raster_comments.sql, topology_comments.sql - generate quick help tips for each function that can be accessed via pgAdmin III or psql. In psql with a command of the form e.g.\dd ST_SetPoint + To compile assuming you have all the dependencies in your search path: tar xvfz postgis-&last_release_version;.tar.gz cd postgis-&last_release_version; -./configure --with-raster --with-topology --with-gui +./configure --with-gui make -make install -createdb yourdatabase +make install + The raster support is currently optional, but installed by default. For installing using the PostgreSQL 9.1+ extensions model raster is required. Using the extension install process is preferred and more user-friendly. To install with extensions you can do the below from psql or by connecting to your database with pgAdmin or psql and just issuing the CREATE EXTENSION sql commands or picking from pgAdmin available extensions list. The extension install does not require you to know paths to script files like the old fogey way. + psql -d yourdatabase -c "CREATE EXTENSION postgis;" +psql -d yourdatabase -c "CREATE EXTENSION postgis_topology;" +psql -d yourdatabase -c "CREATE EXTENSION postgis_tiger_geocoder;" + + + Please refer to for more details about querying installed/available extensions and upgrading extensions and uninstalling extensions. + The postgis_comments.sql, raster_comments.sql, topology_comments.sql + generate quick help tips for each function that can be accessed via pgAdmin III or psql. In psql with a command of the form e.g.\dd ST_SetPoint + + For those running PostgreSQL 9.0 or who decided for some reason not to compile with raster support, or just are old-fashioned, here are longer more painful instructions for you: + All the .sql files once installed will be installed in share/contrib/postgis-&last_release_version; folder + of your PostgreSQL install + + createdb yourdatabase createlang plpgsql yourdatabase psql -d yourdatabase -f postgis.sql psql -d yourdatabase -f postgis_comments.sql @@ -27,17 +36,7 @@ psql -d yourdatabase -f spatial_ref_sys.sql psql -d yourdatabase -f rtpostgis.sql psql -d yourdatabase -f raster_comments.sql psql -d yourdatabase -f topology/topology.sql -psql -d yourdatabase -f doc/topology_comments.sql - - - -topology_comments.sql since its an optional feature -is not installed by make install or -make comments-install. -However if you do a make comments or -make topology_comments.sql, it will be generated -in the docs folder - +psql -d yourdatabase -f doc/topology_comments.sql The rest of this chapter goes into detail each of the above installation -- 2.50.1