postgis/extensions
Regina Obe 2c983ae10b #2401 add is_custom options to pagc_rules table
git-svn-id: http://svn.osgeo.org/postgis/trunk@11724 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-03 16:58:37 +00:00
..
postgis #2356: quick fix for extensions not building anymore because of raster upgrade file change from rtpostgis_upgrade_20_minor.sql to rtpostgis_upgrade_20_21.sql 2013-06-08 20:28:01 +00:00
postgis_tiger_geocoder #2401 add is_custom options to pagc_rules table 2013-08-03 16:58:37 +00:00
postgis_topology update version number to beta1 in prep for tagging, upgrade from old dev, amendments to how to release, rebuild of unpackaged scripts 2013-05-11 15:46:47 +00:00
compute_srid_contiguous_ranges.sql #1834 itemize srid ranges we include and set filter to not back these up. It's long and ugly I know. 2012-06-08 12:45:46 +00:00
make_unpackaged.sql Add add_search_path helper function and call it in install of postgis_tiger_geocoder to add tiger to search path. Create unpacked script for geocoder so can do CREATE EXTENSION postgis_tiger_geocoder FROM unpackaged; 2012-12-26 13:44:51 +00:00
Makefile.in #1627 : more cleanup of extension install, add configure of tiger extension script to configure.ac. Fix comment in tiger comments preventing install 2012-10-10 22:59:09 +00:00
opt_out.sh Provide a script to opt out of extensions 2012-09-29 16:14:05 +00:00
postgis_extension_helper.sql Add add_search_path helper function and call it in install of postgis_tiger_geocoder to add tiger to search path. Create unpacked script for geocoder so can do CREATE EXTENSION postgis_tiger_geocoder FROM unpackaged; 2012-12-26 13:44:51 +00:00
postgis_extension_helper_uninstall.sql Add add_search_path helper function and call it in install of postgis_tiger_geocoder to add tiger to search path. Create unpacked script for geocoder so can do CREATE EXTENSION postgis_tiger_geocoder FROM unpackaged; 2012-12-26 13:44:51 +00:00
README Update extensions/README (#1720) 2012-03-27 14:47:12 +00:00
upgradeable_versions.mk update extension to support upcoming 2.0.4 and 2.1.0rc1 2013-07-10 22:46:08 +00:00

PostGIS Extension for PostgreSQL
================================

PostgreSQL 9.1 (and up) supports PostGIS extensions. A database can easily be
extended to use PostGIS using the syntax::

  CREATE EXTENSION postgis;           -- Includes raster
  CREATE EXTENSION postgis_topology;  -- Depends on postgis

Requirements
------------
 * PostgreSQL 9.1 or later
 * PostGIS must be configured and built ``--with-raster``

Building and installing
-----------------------
First, make sure you follow the regular configuration and installation steps,
completing these steps::

  make
  make install

If you are building from the source SVN repository, it is also recommended to
make the comments, since the function descriptions will be included::

  make comments

Making the comments is not necessary if you are building from the tar.gz source
distributions, since these include pre-built ``postgis_comments.sql``,
``topology_comments.sql``, and ``raster_comments.sql`` files.

Then, to build and install the extensions::

  cd extensions
  make
  make install

The extensions are installed in `SHAREDIR/extension`. (If you're uncertain
where `SHAREDIR` is, run ``pg_config --sharedir``.)

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 dropping
``postgis_topology``.

You will also not be able to drop any PostGIS functions installed by the
extension.

Manual extension installation
-----------------------------
If you want to manually install the extensions from one server to another,
just copy over the following files to the `SHAREDIR/extension` directory:

 * PostGIS (including raster); from ``extensions/postgis``:
    ``postgis.control``
    ``sql/*``

 * Topology extension; from ``extensions/postgis_topolology``:
     ``postgis_topology.control``
     ``sql/*``