From: Kretschmer Andreas <andreas_kretschmer@despammed.com>
To: pgsql-sql@postgresql.org
Subject: Re: Revoke on all database
Date: Sat, 18 Dec 2004 20:08:58 +0100
Message-ID: <20041218190858.GA9986@kaufbach.delug.de> (raw)
In-Reply-To: <1103392473.2940.38.camel@prometeo>
References: <1103392473.2940.38.camel@prometeo>
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° ;-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: andreas_kretschmer@despammed.com
Subject: Re: Revoke on all database
In-Reply-To: <20041218190858.GA9986@kaufbach.delug.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox