From: | Pepe TD Vo <pepevo(at)yahoo(dot)com> |
---|---|
To: | Pgsql-admin <pgsql-admin(at)postgresql(dot)org>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | create tablespace - cannot run inside a transaction block |
Date: | 2019-09-25 14:50:52 |
Message-ID: | 1709062667.8516797.1569423052743@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Good morning Experts,
I'm so sorry for asking a stupid question in postgres again. I am working on AWS server/Postgresql. When I execute a query for creaing the database and/or from the pgAdmin wizzard, I get an error, " CREATE database cannot run inside a transaction block"Finally, I created a database and when I try to create tablespace, I get the same error that cannot run inside a transaction block. I used to create tablespaces fine before migrate to Postgres 11.x,
CREATE TABLESPACE pkihtts_data OWNER "PSmasteruser" LOCATION '/rdsdbdata/db/base/tablespace/pkihtts_data';
or CREATE TABLESPACE pkihtts_data OWNER "PSmasteruser" LOCATION '/rdsdbdata/db/base/tablespace/';
orCREATE TABLESPACE pkihtts_data OWNER "PSmasteruser" LOCATION '/rdsdbdata/';
none of them work. Normally, in Oracle we need to create database, tablespace then username/schema and tables, objects, etc...
is the procedure as same as in Postgres? I see the login and schema are totally different in Postgres.
any input would appreciated.
thank you,
Bach-Nga
No one in this world is pure and perfect. If you avoid people for their mistakes you will be alone. So judge less, love and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success
Attachment | Content-Type | Size |
---|---|---|
image/png | 14.9 KB | |
image/png | 27.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Wainaina | 2019-09-25 15:46:34 | FAIL-OVER AND LOAD BALANCING |
Previous Message | Pepe TD Vo | 2019-09-25 12:35:06 | Re: pgAdmin4 error |