Re: how to setup default privileges

From: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to setup default privileges
Date: 2006-03-07 21:28:22
Message-ID: 440DFAF6.1050904@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

When I first created an object, and did "\dp+ tableName"

I got blank under "Access privileges". However, if I tried to grant any
permission to a group/user, I will see the access privileges for the
object owner.

Example:

1. create table test(id char(3));
2. \dp+ test;

Schema | Name | Type | Access privileges
-------------+------+-------+-------------------
abc | test | table |

3. grant select on test to group g1;

4. \dp+ test

5. After grant to g1, we see the default privileges for objectOwner now:

Schema | Name | Type | Access privileges
-------------+------+-------+-----------------------------------------------------------------------
abc | test | table | {objectOwner=arwdRxt/abc,"group g1=r/abc"}

>>Could somebody tell me that what are the default privileges for table t1
>>please? Does it equal to
>>grant all on t1 to "user1", please?
>>
>>
>
>Yes. See the reference page for GRANT for details.
>
> regards, tom lane
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message felix 2006-03-07 22:06:11 ALTER TABLE -- how to add ON DELETE CASCADE?
Previous Message Ken Johanson 2006-03-07 21:22:11 Perspective: PostgreSQL usage boon after release of 8.2