REVOKE connect ON DATABASE example_db FROM PUBLIC; GRANT connect ON DATABASE example_db TO example_role;