postgis/extensions
2015-10-01 04:39:38 +00:00
..
address_standardizer Get rid of compiler warnings 2015-09-18 06:28:49 +00:00
postgis update srid exclude range for proper dump/restore preserve of custom spatial ref. Add WHERE to compute_srid.. so its an easier cut and paster to editable routine 2015-10-01 04:39:38 +00:00
postgis_sfcgal #2867 can't upgrde sfcgal extension - got rid of begin/commit in upgrade and duplicate includes of helper files, change the make unpackaged from postgis_topology to EXTENSION (not tested build from unpackaged). 2015-07-24 08:37:13 +00:00
postgis_tiger_geocoder get rid of windows end line 2015-09-04 06:22:11 +00:00
postgis_topology Remove the many and unloved $Id$ tags that clutter the code base 2015-05-13 18:13:18 +00:00
compute_srid_contiguous_ranges.sql update srid exclude range for proper dump/restore preserve of custom spatial ref. Add WHERE to compute_srid.. so its an easier cut and paster to editable routine 2015-10-01 04:39:38 +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 #3258 installcheck for tiger geocoder, update some regress so they reflect actual state of outputs, add new genrated folders to gitignore and svn ignore. Update the docs to describe new installcheck for (postgis_tiger_geocoder and address_standardizer extensions) 2015-08-23 06:52:15 +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 Remove the many and unloved $Id$ tags that clutter the code base 2015-05-13 18:13:18 +00:00
postgis_extension_helper_uninstall.sql Remove the many and unloved $Id$ tags that clutter the code base 2015-05-13 18:13:18 +00:00
README Update extensions/README (#1720) 2012-03-27 14:47:12 +00:00
upgradeable_versions.mk Add 2.0.7 release 2015-08-10 18:19:00 +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/*``