<div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; "><pre>Hi, All:</pre><pre>I&#39;d like to  to connect to a db server, create a
database, and then start using it. However, it appears that the
Storm api assumes the existence of a database to connect to, before you
can execute some sql. I&#39;m not able to connect to the server without a database specified.</pre><pre>So, I tried:</pre></span></div><div><br></div><div><div>    db= create_database(&quot;postgres://postgres:password@localhost/postgres&quot;)</div>
<div>    cx= db.connect()</div><div>    cx.execute(&quot;CREATE DATABASE demo_1&quot;)</div></div><div><br></div><div>But I get:</div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; "><pre>
  psycopg2.InternalError: CREATE DATABASE cannot run inside a transaction block</pre></span>I tried some alternatives, like using raw_execute(), but have no success. Is there a solution to this using Storm ?</div><div><br>
</div><div>I know I can resolve this starting a child process and executing pgsql with a sql script, but would like a better solution :-)</div><div>Thanks !!!</div><div>Mario</div><div> <br>-- <br>Mario A. Zito<br>ANALYTE SRL<br>
Parana 457, piso 2, of. &#39;A&#39;<br>(C1033AAI) Buenos Aires, Argentina<br>tel: (54-11) 5258-0205 int 138<br><a href="mailto:mazito@analyte.com">mazito@analyte.com</a><br><a href="http://www.analyte.com">www.analyte.com</a><br>

</div>