Re: create tablespaces and users

From: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
To: Pepe TD Vo <pepevo(at)yahoo(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: create tablespaces and users
Date: 2019-01-14 16:25:08
Message-ID: CAGDYbUN6KGsVGqpGaz222AeBPbw73gB-vvwTxc5SRgQx5=h1RQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Are you talking about migration..?? If yes, you can keep the schema /
trigger same as oracle or transfer data in different schema by creating new
as per your requirement whereas the public is the default schema in
PostgreSQL.

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

On Mon, Jan 14, 2019 at 9:39 PM Pepe TD Vo <pepevo(at)yahoo(dot)com> wrote:

> thank you.
> so after create the database, I need to create user and tablespace with
> each ownership
> create user <user name>;
> create tablespace <name> location '<directory path>' owner <user name>;
>
> what if I transfer the schemas/triggers, etc... from oracle to postgres,
> are they stayed the same or what? What is the best way suggestion I need
> to do?
>
> thank you.
>
> v/r,
>
>
>
> *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
>
>
> On Monday, January 14, 2019 10:48 AM, Shreeyansh Dba <
> shreeyansh2014(at)gmail(dot)com> wrote:
>
>
> 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(at)yahoo(dot)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
>
>
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Pepe TD Vo 2019-01-14 16:33:01 Re: create tablespaces and users
Previous Message Pepe TD Vo 2019-01-14 16:09:03 Re: create tablespaces and users