title: What is a valid PostgreSQL database name?
body: <p>I create a database with a hyphen in the middle of the name with <code>createdb</code>. That successfully creates the database, but within the <code>psql</code> interactive client, I get a syntax error if I try a command like this:</p>
  
  <p><code>
  ALTER DATABASE my-database SET SCHEMA = myschema,public;
  </code></p>
  
  <p><code>psql</code> complains of a syntax error at or near "-"</p>
  
  <p>Is there some documentation for what counts as a valid PostgreSQL database name?</p>
  
  <p>Should I just underscores instead of hyphens?</p>