GRANT CONNECT ON DATABASE - Mailing list pgsql-admin

From Edwin UY
Subject GRANT CONNECT ON DATABASE
Date
Msg-id CA+wokJ8-z3sXJbrWHoxEVa2dV2Qsp2OyqyzdJBa3rvhWOEyXOg@mail.gmail.com
Whole thread Raw
Responses Re: GRANT CONNECT ON DATABASE
Re: GRANT CONNECT ON DATABASE
Re: GRANT CONNECT ON DATABASE
List pgsql-admin
Hi,

A role was created as below:
CREATE ROLE [blah] WITH NOLOGIN NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION VALID UNTIL 'infinity';

Doesn't the following SQLs supposed to give the role login access?

ALTER ROLE [blah] WITH ENCRYPTED PASSWORD 'blahpassword' ;
GRANT CONNECT ON DATABASE [blahdb] TO [blahuser] ;

We're trying to take the minimalist approach for a user access to have access to only the tables he has created and only to a specific database and schema.

Regards,
Ed


pgsql-admin by date:

Previous
From: Kashif Zeeshan
Date:
Subject: Re: PostgreSQL Logical replication FROM RDS TO EC2
Next
From: soroush jurat
Date:
Subject: Re: GRANT CONNECT ON DATABASE