From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Pepe TD Vo <pepevo@yahoo.com>
To: Pgsql-admin <pgsql-admin@postgresql.org>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: create tablespace - cannot run inside a transaction block
Date: Wed, 25 Sep 2019 21:16:13 +0200
Message-ID: <19fd8930b2fcc8f05737b54c8ec847e486dda687.camel@cybertec.at> (raw)
In-Reply-To: <1709062667.8516797.1569423052743@mail.yahoo.com>
References: <1709062667.8516797.1569423052743.ref@mail.yahoo.com>
<1709062667.8516797.1569423052743@mail.yahoo.com>
On Wed, 2019-09-25 at 14:50 +0000, Pepe TD Vo wrote:
> 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.
No, normally you don't create tablespaces in PostgreSQL.
They are a few use cases for them, but not many.
There is nothing wrong with creating a schema with the same name
as the user in PostgreSQL, as long as you make sure that the
user owns the schema.
Then you have emulated Oracle's behaviour somewhat.
Yours,
Laurenz Albe
--
+43-670-6056265
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26, A-2700 Wiener Neustadt
Web: https://www.cybertec-postgresql.com
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: laurenz.albe@cybertec.at, pepevo@yahoo.com, pgsql-admin@lists.postgresql.org
Subject: Re: create tablespace - cannot run inside a transaction block
In-Reply-To: <19fd8930b2fcc8f05737b54c8ec847e486dda687.camel@cybertec.at>
* 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