This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- From http://geospatial.nomad-labs.com/2006/12/24/postgis-template-database/ | |
-- $ sudo su postgres | |
-- $ psql template1 | |
\c template1 | |
CREATE DATABASE template_postgis WITH template = template1; | |
-- set the 'datistemplate' record in the 'pg_database' table for | |
-- 'template_postgis' to TRUE indicating its a template | |
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template_postgis'; |
NewerOlder