Re: create tablespaces and users - Mailing list pgsql-admin

From Shreeyansh Dba
Subject Re: create tablespaces and users
Date
Msg-id CAGDYbUP=-MrarmfMe13csQ+BbiqDTAcUEhk-PG8FqQgc1G=kVQ@mail.gmail.com
Whole thread Raw
In response to create tablespaces and users  (Pepe TD Vo <pepevo@yahoo.com>)
Responses Re: create tablespaces and users  (Pepe TD Vo <pepevo@yahoo.com>)
List pgsql-admin
In PostgreSQL tablespaces and user all cluster level objects. tablespace is just another name for a folder where the Postgres server process owner (typically “postgres” system user) is the owner and can write some files. 

In PostgreSQL All objects stored in default tablespace i.e. pg_default. 
You can create or alter databases in the tablespace and assign ownership for that tablespace.

Commands use for creating user and tablespace:
create user <user name>;
create tablespace <name> location '<directory path>' owner <user name>;

Thanks & Regards,
Shreeyansh DBA Team
www.shreeyansh.com


On Mon, Jan 14, 2019 at 8:55 PM Pepe TD Vo <pepevo@yahoo.com> wrote:
Hello experts,

From oracle databases, I have few tablespaces and users created for that particular database.  How could I do the same for postgres? 

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

pgsql-admin by date:

Previous
From: Pepe TD Vo
Date:
Subject: create tablespaces and users
Next
From: Ron
Date:
Subject: Re: Delete Enhancement Request