10月
31
2019
I am working on AWS server + PostgreSQL. When I execute a query for creating the database I get an error:
CREATE DATABASE cannot run inside a transaction block
I am working on Linux Ubuntu 12.04 LTS.
How can I resolve this issue?
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
来源:https://stackoverflow.com/questions/26482777/create-database-cannot-run-inside-a-transaction-block