GRANT CONNECT ON DATABASE

From: Edwin UY <edwin(dot)uy(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: GRANT CONNECT ON DATABASE
Date: 2024-06-10 00:09:14
Message-ID: CA+wokJ8-z3sXJbrWHoxEVa2dV2Qsp2OyqyzdJBa3rvhWOEyXOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message soroush jurat 2024-06-10 00:14:39 Re: GRANT CONNECT ON DATABASE
Previous Message Kashif Zeeshan 2024-06-09 19:35:17 Re: PostgreSQL Logical replication FROM RDS TO EC2