Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Document the way PostGIS 2 database works during tests #2321

Closed
wants to merge 3 commits into from

3 participants

@yakky

This adds a brief documentation on how database creation works during tests

@evildmp

Capitalisation? "PostGIS"

@yakky

Thanks, fixed

docs/ref/contrib/gis/testing.txt
@@ -92,6 +92,16 @@ Create local PostgreSQL database
3. Start this database ``pg_ctl -D /path/to/user/db start``
+
+Create a database using PostGIS version 2.0
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+When testing projects using :ref:`PostGIS 2 <spatialdb_template91>`,
+the test database is created using the `CREATE EXTENSION postgis`
+instruction, provided that no template `template_postgis` (or named
@claudep Collaborator
claudep added a note

Please use double backquotes when quoting strings (for CREATE EXTENSION postgis and template_postgis)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@claudep
Collaborator

Thanks, pushed in 65b4626

@claudep claudep closed this
@yakky yakky deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 21, 2014
  1. @yakky

    Document the way PostGIS 2 database works during tests

    yakky authored yakky committed
Commits on Feb 25, 2014
  1. @yakky

    Fix capitalization in title

    yakky authored
  2. @yakky

    Update quoting

    yakky authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 docs/ref/contrib/gis/testing.txt
View
10 docs/ref/contrib/gis/testing.txt
@@ -92,6 +92,16 @@ Create local PostgreSQL database
3. Start this database ``pg_ctl -D /path/to/user/db start``
+
+Create a database using PostGIS version 2.0
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+When testing projects using :ref:`PostGIS 2 <spatialdb_template91>`,
+the test database is created using the ``CREATE EXTENSION postgis``
+instruction, provided that no template ``template_postgis`` (or named
+accordingly to :setting:`POSTGIS_TEMPLATE`) exists in the current
+database.
+
Windows
-------
Something went wrong with that request. Please try again.