Re: Granting Privleges on All Tables in One Comand?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Adam <adam(at)spatialsystems(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Granting Privleges on All Tables in One Comand?
Date: 2006-01-12 04:43:17
Message-ID: 200601120443.k0C4hHt07293@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam wrote:
> Is it possible to 'GRANT SELECT ON ALL TABLES TO User' in 1 command ?
>
> I saw the question in 2003 and wonder if it's still true.

Still true, but on the TODO list:

o %Allow GRANT/REVOKE permissions to be applied to all schema objects
with one command

The proposed syntax is:
GRANT SELECT ON ALL TABLES IN public TO phpuser;
GRANT SELECT ON NEW TABLES IN public TO phpuser;

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-01-12 05:16:05 Re: sql (Stored procedure) design question
Previous Message Assad Jarrahian 2006-01-12 04:36:02 sql (Stored procedure) design question