Re: Granting Privleges on All Tables in One Comand?

From: "Larry Rosenman" <lrosenman(at)pervasive(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Adam" <adam(at)spatialsystems(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Granting Privleges on All Tables in One Comand?
Date: 2006-01-12 14:22:39
Message-ID: D1D2D51E3BE3FC4E98598248901F75940328D970@ausmail2k4.aus.pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> 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:
>
> Also, you can do it today by making a plpgsql function that iterates
> through all the tables and does GRANTs. There are examples in the
> mailing list archives. (The TODO item would probably have been done
> by now if it weren't so easy to work around it.)
>
One example:

http://www.archonet.com/pgdocs/grant-all.html

--
Larry Rosenman
Database Support Engineer

PERVASIVE SOFTWARE. INC.
12365B RIATA TRACE PKWY
3015
AUSTIN TX 78727-6531

Tel: 512.231.6173
Fax: 512.231.6597
Email: Larry(dot)Rosenman(at)pervasive(dot)com
Web: www.pervasive.com

Browse pgsql-general by date

  From Date Subject
Next Message George Woodring 2006-01-12 14:27:05 Issue with fixseq.sql in 8.1 release notes
Previous Message A. Kretschmer 2006-01-12 13:38:04 Re: Returning SQL statement