How does one drop a template database from PostgreSQL?

postgres=# UPDATE pg_database SET datistemplate="false" WHERE datname="template_postgis";
UPDATE 1
postgres=# DROP DATABASE template_postgis;
DROP DATABASE
postgres=# 

Leave a Comment