CREATE DATABASE cannot run inside a transaction block

Nikunj K.

I have used turn on autocommit in PostgreSQL and it's working for me.

Here is the query to turn on the autocommit

SET AUTOCOMMIT = ON