Re: GRANT CONNECT ON DATABASE - Mailing list pgsql-admin

From David G. Johnston
Subject Re: GRANT CONNECT ON DATABASE
Date
Msg-id CAKFQuwaJM51pW5a6HfarX1M-sH1bokX3KYRamKB5yCJdt3mFFw@mail.gmail.com
Whole thread Raw
In response to GRANT CONNECT ON DATABASE  (Edwin UY <edwin.uy@gmail.com>)
List pgsql-admin
On Sunday, June 9, 2024, Edwin UY <edwin.uy@gmail.com> wrote:

A role was created as below:
CREATE ROLE [blah] WITH NOLOGIN


As already noted this means “do not allow to login”.

ALTER ROLE [blah] WITH ENCRYPTED PASSWORD 'blahpassword' ;

If you want them to use a password this is also required in addition to the ability to login.
 
GRANT CONNECT ON DATABASE [blahdb] TO [blahuser] ;

Redundant with the default connect grant given to the public pseudo-role.

David J.

pgsql-admin by date:

Previous
From: soroush jurat
Date:
Subject: Re: GRANT CONNECT ON DATABASE
Next
From: Edwin UY
Date:
Subject: Re: GRANT CONNECT ON DATABASE