postgis/extensions
2012-02-06 19:30:12 +00:00
..
postgis Make exensions depend on comments, so also depend on xsltproc 2012-02-06 19:30:12 +00:00
postgis_topology Make exensions depend on comments, so also depend on xsltproc 2012-02-06 19:30:12 +00:00
Makefile PostGIS extensions should build/install automatically if PostGIS is compiled against 9.1 (#1490) 2012-02-06 19:01:50 +00:00
postgis_extension_helper.sql put in svn Author Date Id Revision keywords 2012-01-09 20:17:59 +00:00
postgis_extension_helper_uninstall.sql put in svn Author Date Id Revision keywords 2012-01-09 20:17:59 +00:00
README update build extensions to include the make comments if building from source repo and also that it requires a separate compile step (until #1490) 2012-01-21 01:31:52 +00:00
upgradeable_versions.mk Change how we calculate minor versions suitable for extension upgrade. 2012-02-06 18:44:56 +00:00

These are extension modules for PostgreQL 9.1
to allow postgis modules
to be installed using standard PostgreSQL 9.1+
CREATE EXTENSION syntax

To use: first make install regular PostGIS.  Also make sure to make the comments
if you are building from teh source repository
since the extensions package the postgis function descriptions.
make comments

Makign the comments is not necessary if you are building 
from the tar balls since the tar balls have 
the various postgis_comments.sql, topology_comments.sql, 
and raster_comments.sql already built.

Then:
cd extensions/postgis
make install
cd ..
cd extensions/postgis_topology
make install

These should automatically get installed in share/extension folder of
PostgreSQL 9.1.

Then in your PostgreSQL database run
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;


The dependency logic should warn if you try
to install postgis_topology without postgis
or try to drop postgis without first droping postgis_topology.

You will also not be able to drop any postgis functions installed by the extension.
If you want to manually install the extensions from one server to another
, just copy over the

extensions/postgis: postgis.control, sql/*
extension/postgis_topoloyg postgis_topology.control,sql/* 

files into your PostgreSQL/share/extension folder.