Re: grant connect on database

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: spur230 <sabinpradhan(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: grant connect on database
Date: 2015-12-16 19:58:28
Message-ID: 86wpsego7v.fsf@jerry.enova.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

spur230 <sabinpradhan(at)gmail(dot)com> writes:

> I am using Postgres 9.4. I created a login role and gave select to all
> tables to a schema as follows:
>
>
> create role fix;
> create role dcv login password 'mypassword' in role fix;
> grant select on all tables on schema xzy to dcv';
>
> I was able to connect to the database without giving 'grant connect on
> database db1 to dcv'
>
> My question is when do I have to explicitly give connect grant? How did
> user dcv connect to database without the connect privilege?

NEver, unless you were to revoke it from public..

Connect is granted to public by default.

> Thanks
>
>
>
> --
> View this message in context: http://postgresql.nabble.com/grant-connect-on-database-tp5877872.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres(dot)consulting(at)comcast(dot)net
p: 312.241.7800

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-12-16 21:30:10 Re: grant connect on database
Previous Message spur230 2015-12-16 17:05:13 grant connect on database