Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Document the way PostGIS 2 database works during tests #2321

Closed
wants to merge 3 commits into from

3 participants

Iacopo Spalletti Claude Paroz Daniele Procida
Iacopo Spalletti

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

Daniele Procida

Capitalisation? "PostGIS"

Iacopo Spalletti

Thanks, fixed

docs/ref/contrib/gis/testing.txt
@@ -92,6 +92,16 @@ Create local PostgreSQL database
92 92
93 93 3. Start this database ``pg_ctl -D /path/to/user/db start``
94 94
  95 +
  96 +Create a database using PostGIS version 2.0
  97 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  98 +
  99 +When testing projects using :ref:`PostGIS 2 <spatialdb_template91>`,
  100 +the test database is created using the `CREATE EXTENSION postgis`
  101 +instruction, provided that no template `template_postgis` (or named
1
Claude Paroz Owner
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
Claude Paroz
Owner

Thanks, pushed in 65b4626

Iacopo Spalletti yakky deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 docs/ref/contrib/gis/testing.txt
10 docs/ref/contrib/gis/testing.txt
@@ -92,6 +92,16 @@ Create local PostgreSQL database
92 92
93 93 3. Start this database ``pg_ctl -D /path/to/user/db start``
94 94
  95 +
  96 +Create a database using PostGIS version 2.0
  97 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  98 +
  99 +When testing projects using :ref:`PostGIS 2 <spatialdb_template91>`,
  100 +the test database is created using the ``CREATE EXTENSION postgis``
  101 +instruction, provided that no template ``template_postgis`` (or named
  102 +accordingly to :setting:`POSTGIS_TEMPLATE`) exists in the current
  103 +database.
  104 +
95 105 Windows
96 106 -------
97 107

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.