Re: GRANT CONNECT ON DATABASE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday, June 9, 2024, Edwin UY <edwin.uy@xxxxxxxxx> 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.


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux