<title>Building PostGIS Extensions and Deploying them</title>
<para>
- The PostGIS extensions which is usable for PostgreSQL 9.1+, should be automatically installed if you are built against
- PostgreSQL 9.1+.
+ The PostGIS extensions which is usable for PostgreSQL 9.1+, can be built by cding into the extension folders and doing a make install.
+ This will be an automated process in the future when PostGIS is compiled against a 9.1 build and fully integrated int ot he build process.
</para>
+ <para>If you are building from souce repository, you need to build the function descriptions first with:</para>
+ <programlisting>make comments</programlisting>
+ <para>Building the comments is not necessary if you are building from a tar ball since these are packaged pre-built with the tar ball already.</para>
+ <para>Next build the extensions and install them.</para>
+ <programlisting>cd extensions
+cd postgis
+make clean
+make
+make install
+cd ..
+cd postgis_topology
+make clean
+make
+make install
+ </programlisting>
<para>The extension files will always be the same for the same version of PostGIS regardless of OS, so it is same as long as you
have the PostGIS binaries already installed on your servers, to copy over the extension files. </para>
<para>If you want to install the extensions manually on a separate server different from your development,
to be installed using standard PostgreSQL 9.1+
CREATE EXTENSION syntax
-To use: first make install regular PostGIS.
+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
-PostGIS if you compiled against PostgreSQL 9.1
+PostgreSQL 9.1.
Then in your PostgreSQL database run
CREATE EXTENSION postgis;
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.
\ No newline at end of file
+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.
\ No newline at end of file