title: Create database using a stored function
body: <p>I am new to PostgreSQL and want to create a database using a stored function.<br>
  For ex:</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION mt_test(dbname character varying)
    RETURNS integer AS
  $BODY$
  
  Create Database $1;
  
  Select 1;
  
  $BODY$
    LANGUAGE sql;
  </code></pre>
  
  <p>When I am trying to execute this function I get a syntax error.</p>
  
  <p>Does Postgres support the <code>CREATE DATABASE</code> statement in stored functions? </p>