pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pepe TD Vo <pepevo@yahoo.com>
To: Pgsql-admin <pgsql-admin@postgresql.org>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: create tablespace - cannot run inside a transaction block
Date: Wed, 25 Sep 2019 14:50:52 +0000 (UTC)
Message-ID: <1709062667.8516797.1569423052743@mail.yahoo.com> (raw)
References: <1709062667.8516797.1569423052743.ref@mail.yahoo.com>

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

Attachments:

1569422040015blob.jpg (image/png, 14.9K) download view image
1569422852131blob.jpg (image/png, 27.5K) download view image

view thread (2+ messages)  latest in thread

Message-ID: <1709062667.8516797.1569423052743@mail.yahoo.com>
Permalink:  ../1709062667.8516797.1569423052743@mail.yahoo.com/
Also on:    postgresql.org/message-id/1709062667.8516797.1569423052743@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pepevo@yahoo.com, pgsql-admin@lists.postgresql.org
  Subject: Re: create tablespace - cannot run inside a transaction block
  In-Reply-To: <1709062667.8516797.1569423052743@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox