title: python Postgresql CREATE DATABASE IF NOT EXISTS is error
body: <p>I tried to learn about <code>postgresql</code> using <code>python</code>. I want to create condition CREATE DATABASE IF NOT EXISTS, but I always get an error. The error is :</p>
  <blockquote>
  <p>File &quot;learn_postgres.py&quot;, line 27, in InitDatabase<br />
  cursor.execute(&quot;CREATE DATABASE IF NOT EXISTS python_db&quot;)
  psycopg2.ProgrammingError: syntax error at or near &quot;NOT&quot;<br />
  LINE 1: CREATE DATABASE IF NOT EXISTS python_db</p>
  </blockquote>