Re: User Privileges

From: "Dan Wilson" <phpPgAdmin(at)acucore(dot)com>
To: "Niral Trivedi" <niral(dot)trivedi(at)insage(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: User Privileges
Date: 2000-12-26 18:25:29
Message-ID: 004701c06f69$3abe1980$078353d8@danwilson
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> For example I have 5 tables in database A. And now I want to give
> SELECT/UPDATE/INSERT privileges to a user to all 5 tables. But according
to
> documentation, I have to execute 'GRANT' query 3 times(for
> select/update/insert) per table. meaning total of 15 times!!!!

That's incorrect... you can do it all in one statement:

GRANT select,update,insert TO "<username>" ON table_1,table_2,table_3,etc

http://www.postgresql.org/users-lounge/docs/7.0/user/sql-grant.htm

-Dan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message kenford 2000-12-26 19:14:13 Solaris 8 Sparc initdb error
Previous Message Niral Trivedi 2000-12-26 17:36:29 RE: User Privileges