pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Revoke on all database
2+ messages / 2 participants
[nested] [flat]

* Revoke on all database
@ 2004-12-18 17:54 Henry Molina <henrymolina@cmn-consulting.com>
  2004-12-18 19:08 ` Re: Revoke on all database Kretschmer Andreas <andreas_kretschmer@despammed.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Henry Molina @ 2004-12-18 17:54 UTC (permalink / raw)
  To: pgsql-sql

Hi all,

Can I revoke "delete" on all database, something like this:

REVOKE DELETE ON DATABASE mydb FROM PUBLIC;

thanks!


-- 
Henry Molina
R&D
CMN Consulting




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Revoke on all database
  2004-12-18 17:54 Revoke on all database Henry Molina <henrymolina@cmn-consulting.com>
@ 2004-12-18 19:08 ` Kretschmer Andreas <andreas_kretschmer@despammed.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kretschmer Andreas @ 2004-12-18 19:08 UTC (permalink / raw)
  To: pgsql-sql

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° ;-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-12-18 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-18 17:54 Revoke on all database Henry Molina <henrymolina@cmn-consulting.com>
2004-12-18 19:08 ` Kretschmer Andreas <andreas_kretschmer@despammed.com>

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