title: How to create a new database with the hstore extension already installed?
body: <p>Recently <a href="https://stackoverflow.com/a/11581961/343834">I went into trouble</a> trying to use hstore with Django. I installed hstore this way:</p>
  
  <pre class="lang-sql prettyprint-override"><code>$ sudo -u postgres psql
  postgres=# CREATE EXTENSION hstore;
  WARNING:  =&gt; is deprecated as an operator name
  DETAIL:  This name may be disallowed altogether in future versions of PostgreSQL.
  CREATE EXTENSION
  postgres=# \dx
                             List of installed extensions
    Name   | Version |   Schema   |                   Description                    
  ---------+---------+------------+--------------------------------------------------
   hstore  | 1.0     | public     | data type for storing sets of (key, value) pairs
   plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural language
  (2 rows)
  </code></pre>
  
  <p>And naively thought that my new databases would include hstore. That ain't the case:</p>
  
  <pre class="lang-sql prettyprint-override"><code>$ createdb dbtest
  $ psql -d dbtest -c '\dx'
                   List of installed extensions
    Name   | Version |   Schema   |         Description          
  ---------+---------+------------+------------------------------
   plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural language
  (1 row)
  </code></pre>
  
  <p>Is there a way to automatically have hstore in a newly created database ?</p>