| From: | Niral Trivedi <niral(dot)trivedi(at)insage(dot)com> |
|---|---|
| To: | "'Dan Wilson'" <phpPgAdmin(at)acucore(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | RE: User Privileges |
| Date: | 2000-12-26 17:36:29 |
| Message-ID: | 328DC4EC2C9B74428D8DAED1931285BF10D988@FLAN-EXCH01.corp.insage.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Thank you..
Niral
-----Original Message-----
From: Dan Wilson [mailto:phpPgAdmin(at)acucore(dot)com]
Sent: Tuesday, December 26, 2000 1:25 PM
To: Niral Trivedi; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] User Privileges
> 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dan Wilson | 2000-12-26 18:25:29 | Re: User Privileges |
| Previous Message | Niral Trivedi | 2000-12-26 16:55:23 | User Privileges |