Re: REVOKE from all tables ...

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, pgsql-admin(at)postgresql(dot)org
Subject: Re: REVOKE from all tables ...
Date: 2005-08-09 14:55:52
Message-ID: 8BFED8F4-D5A1-4096-AB10-AF82C1350DFC@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On Aug 9, 2005, at 9:20 AM, Stephen Frost wrote:

> * Marc G. Fournier (scrappy(at)postgresql(dot)org) wrote:
>
>> Is there a way of REVOKEing privileges on all tables in a
>> database? I've
>> checked the REVOKE man page, and there doesn't appear to be, but I
>> figured
>> I'd double check to make sure ...
>>
>
> I actually wrote a little perl script which allows you to pass in a
> regexp to match names against, allows for limitation to a specific
> schema, and handles tables, views, sequences and functions. I'll see
> about making it available (it's not very big). Of course, I think
> it'd
> be nice to have some functions in core that did the same thing; or
> maybe
> some ability in psql to do it.

Also, there are some pl/pgsql functions available from here which
will GRANT/REVOKE on all tables:

http://pgedit.com/node/20

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-08-09 15:59:27 Re: [GENERAL] postgres & server encodings
Previous Message Ben Kim 2005-08-09 14:13:55 Re: SQL Server 2000 to PostgreSQL 8.0.3