Re: Schema/user/role

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: DAVID ROTH <adaptron(at)comcast(dot)net>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Schema/user/role
Date: 2023-03-20 17:22:26
Message-ID: CAKFQuwYyKyY3afn3fRj=j4+_SrarbKAU0qzmhRKS1HQUzumgFQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Mar 20, 2023 at 9:13 AM DAVID ROTH <adaptron(at)comcast(dot)net> wrote:

> Is there any good reference to explain the best usage of each of these
> structures.
> I am coming from Oracle. What is the best analog to Oracle's "user".
>

A schema is a namespace mechanism for objects. It has no relationship to
roles aside from the possibility, if you so choose, to define a schema to
have the same name as a role, in which case that schema becomes parts of
that role's default search_path.

There is no low-level difference between role and user. A user is a role
with the login privilege.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bryn Llewellyn 2023-03-20 18:57:21 Re: Schema/user/role
Previous Message Ron Johnson 2023-03-20 16:54:23 Re: Schemas and Search Path