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

From rob stone
Subject Re: Basic Questions about PostgreSQL.
Date
Msg-id 61c72117499fc76f99542e2c889e8841b6e2db49.camel@gmail.com
Whole thread Raw
In response to Basic Questions about PostgreSQL.  (A Z <poweruserm@live.com.au>)
Responses Re: Basic Questions about PostgreSQL.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general

On Wed, 2021-09-15 at 05:10 +0000, A Z wrote:
> -In PostgreSQL, what is the difference between Roles, Groups, and
> Policies exactly? What are they each, how do they relate to one
> another, and which one(s) can be assigned to another?
> 
> -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?
> 

Read
https://www.postgresql.org/docs/13/app-postgres.html#id-1.9.5.14.6.5

about single user mode.
You shut down the cluster and run psql in single user mode.
After you quit out of single user mode, restart.

HTH,
Rob





pgsql-general by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: The tragedy of SQL
Next
From: Tom Lane
Date:
Subject: Re: Basic Questions about PostgreSQL.