postgis/extensions
Regina Obe 3083021ce2 Flip back to dev mode and fix HOWTO_RELEASE instructions 2021-09-11 14:19:15 -04:00
..
address_standardizer Remove redundant install line 2021-08-21 02:02:49 -04:00
postgis Encode dependency of postgis extension on postgis_revision.h 2021-07-14 13:34:55 +02:00
postgis_raster Encode dependency of postgis_raster extension on postgis_revision.h 2021-07-14 13:44:16 +02:00
postgis_sfcgal Work around PG13 drop of `FROM unpackaged` syntax 2020-10-05 21:50:24 +02:00
postgis_tiger_geocoder Support for tiger 2020. References #4838 for PostGIS 3.2.0 2021-04-11 00:56:14 -04:00
postgis_topology Remove useless pre-write of topology extension guard 2021-07-21 18:29:51 +02:00
Makefile.in Split "check" into "check-regress" and "check-unit" 2019-08-22 13:36:59 +00:00
README Fix postgresql version number and get rid of notice about --with-raster 2021-06-24 16:52:45 -04:00
extensions_unpackage.sh Drop support for stdout in extensions_unpackage.sh 2019-03-10 18:51:13 +00:00
postgis_extension_helper.sql Partially revert r17181 2019-01-22 09:10:21 +00:00
postgis_extension_helper_uninstall.sql Style only change: remove trailing whitespaces 2016-04-27 14:45:28 +00:00
upgrade-paths-rules.mk upgrade-paths-rules.mk: Drop the -v flag 2019-09-25 10:31:18 +00:00
upgradeable_versions.mk Flip back to dev mode and fix HOWTO_RELEASE instructions 2021-09-11 14:19:15 -04:00

README

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

PostgreSQL 9.6 (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.6 or later

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/*``