X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 636903A6833 for ; Sat, 18 Dec 2004 19:08:33 +0000 (GMT) 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 17754-03 for ; Sat, 18 Dec 2004 19:08:25 +0000 (GMT) Received: from md1.psixpress.com (md1.psixpress.com [154.32.105.205]) by svr1.postgresql.org (Postfix) with ESMTP id 4E23D3CCA69 for ; Sat, 18 Dec 2004 19:08:24 +0000 (GMT) Received: from kaufbach.delug.de (35.pool1.dialup.cybernet-ag.de [195.143.124.35]) by md1.psixpress.com (MOS 3.5.6-GR) with ESMTP id CGO09158; Sat, 18 Dec 2004 19:08:21 GMT Received: from kretschmer by kaufbach.delug.de with local (Exim 3.35 #1) id 1Cfjwo-0002dP-00 for pgsql-sql@postgresql.org; Sat, 18 Dec 2004 20:08:58 +0100 Date: Sat, 18 Dec 2004 20:08:58 +0100 From: Kretschmer Andreas To: pgsql-sql@postgresql.org Subject: Re: Revoke on all database Message-ID: <20041218190858.GA9986@kaufbach.delug.de> References: <1103392473.2940.38.camel@prometeo> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1103392473.2940.38.camel@prometeo> User-Agent: Mutt/1.3.28i X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.061 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/135 X-Sequence-Number: 19755 am Sat, dem 18.12.2004, um 12:54:33 -0500 mailte Henry Molina folgendes: > Hi all, > > Can I revoke "delete" on all database, something like this: on all databases, or on all tables in one database? > > REVOKE DELETE ON DATABASE mydb FROM PUBLIC; IMHO no, but you can walk through all database via 'psql -l' and then walk through all tables in every database via 'echo "\d " | psql db'. You get all tables in all databases and now you can do a 'revoke' on this tables. But i'm afraid, there is a better way to do this task... Andreas -- Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau- fenden Pinguins aus artgerechter Freilandhaltung. Er ist garantiert frei von Micro$oft'schen Viren. (#97922 http://counter.li.org) GPG 7F4584DA Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)