Re: Basic Questions about PostgreSQL. - Mailing list pgsql-general

From David G. Johnston
Subject Re: Basic Questions about PostgreSQL.
Date
Msg-id CAKFQuwbVifHzCdcFDLN3NBY7W+T+nC54DKXK6voODd3uX+9Fyw@mail.gmail.com
Whole thread Raw
In response to Basic Questions about PostgreSQL.  (A Z <poweruserm@live.com.au>)
List pgsql-general
On Wednesday, September 15, 2021, A Z <poweruserm@live.com.au> wrote:
-In PostgreSQL, what is the difference between Roles, Groups


There is none, aside from convention.  Roles are generic, groups don’t get login rights while users do.

You might want to clarify what you mean by policy since referencing the “create policy” command seems out of place here.

 
-Is there a simple, immediate, straightforward way to temporarily disable PostgreSQL database
use of all other users, except development users, or in fact just one user (one developer, yourself)
so that maintenance on the data or the data model may be performed?


Manipulating the pg_hba.comf file is usually the most efficient method.

Though since connect privileges are usually left as strictly inherited from public by default revoking connect from public will most likely prevent non-superusers from connecting to databases.

Though it seems unusual that maintenance would require such extreme measures to be taken.

David J.

pgsql-general by date:

Previous
From: Guyren Howe
Date:
Subject: Re: SQL queries as sets: was The tragedy of SQL
Next
From: Brent Wood
Date:
Subject: Re: SQL queries as sets: was The tragedy of SQL