Skip to content

Commit

Permalink
Added hint about template_postgis to docs, thanks to Marc Cave-Ayland…
Browse files Browse the repository at this point in the history
… for contribution.

git-svn-id: http://svn.osgeo.org/postgis/trunk@2507 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
markusschaber committed Oct 11, 2006
1 parent 8a050ec commit 4294f11
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/postgis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,19 @@
</listitem>
</orderedlist>

<sect2 id="templatepostgis">
<title>Creating PostGIS spatially-enabled databases from an in-built template</title>
<para>Some packaged distributions of PostGIS (in particular the Win32 installers for PostGIS &gt;= 1.1.5) load the PostGIS functions into a template database called <varname>template_postgis</varname>. If the <varname>template_postgis</varname> database exists in your PostgreSQL installation then it is possible for users and/or applications to create spatially-enabled databases using a single command. Note that in both cases, the database user must have been granted the privilege to create new databases.</para>

<para>From the shell:</para>

<programlisting># createdb -T template_postgis my_spatial_db</programlisting>

<para>From SQL:</para>

<programlisting>postgres=# CREATE DATABASE my_spatial_db TEMPLATE=template_postgis</programlisting>
</sect2>

<sect2 id="upgrading">
<title>Upgrading</title>

Expand Down

0 comments on commit 4294f11

Please sign in to comment.