3
3
createdb -E UTF8 template_postgis # Create the template spatial database.
4
4
createlang -d template_postgis plpgsql # Adding PLPGSQL language support.
5
5
psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis';"