how to setup default privileges

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

Hello,

When an object is created by the default user "user1", I ran:
\dp+ tableName , and got:

Schema | Name | Type | Access privileges
-------------+------+-------+-------------------
schemaName | t1 | table | --- step 0

The Access privileges is blank. However, I am able to insert, update,
delete , etc on the newly created t1.

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?

After running "revoke all on t1 from user1", how to reset the table
privileges back to step 0 please?

Thanks a lot,
Emi

Responses

Browse pgsql-general by date

  From Date Subject
Next Message vishal saberwal 2006-03-07 18:34:39 User defined EXCEPTIONs
Previous Message Michael Fuhr 2006-03-07 16:38:25 Re: About when we should setup index?