from python using PgSQL.
i get:
" libpq.OperationalError: ERROR: CREATE DATABASE: may not be called
in a transaction block"
in a python script i do :
db = PgSQL.connect(database='template1')
cur=db.cursor()
cur.execute("create database tt2")
cur.close()
del db, cur
how does one not be in a transaction block?
what is the correct way to create a db?