X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 811EE5289C; Tue, 9 Aug 2005 11:56:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28851-02; Tue, 9 Aug 2005 14:56:03 +0000 (GMT) Received: from a2s4.a2hosting.com (a2s4.a2hosting.com [64.9.205.220]) by svr1.postgresql.org (Postfix) with ESMTP id 6F64552867; Tue, 9 Aug 2005 11:56:02 -0300 (ADT) Received: from user-1120s32.dsl.mindspring.com ([66.32.112.98] helo=[192.168.1.10]) by a2s4.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.51) id 1E2VWP-0002i3-Oi; Tue, 09 Aug 2005 10:56:05 -0400 In-Reply-To: <20050809132015.GW6026@ns.snowman.net> References: <20050809004545.S958@hub.org> <20050809132015.GW6026@ns.snowman.net> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8BFED8F4-D5A1-4096-AB10-AF82C1350DFC@pgedit.com> Cc: "Marc G. Fournier" , pgsql-admin@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: REVOKE from all tables ... Date: Tue, 9 Aug 2005 10:55:52 -0400 To: Stephen Frost X-Mailer: Apple Mail (2.733) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s4.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/108 X-Sequence-Number: 18427 On Aug 9, 2005, at 9:20 AM, Stephen Frost wrote: > * Marc G. Fournier (scrappy@postgresql.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