From: Randall Perry <rgp@systame.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
Cc: olly@lfix.co.uk
Cc: pgsql-admin@postgresql.org
Subject: Re: How do I grant access to entire database at
Date: Wed, 28 Jul 2004 14:14:40 -0400
Message-ID: <BD2D6550.7FABE%rgp@systame.com> (raw)
In-Reply-To: <9472.1090874787@sss.pgh.pa.us>
What might be nice is a deductive syntax, so you can GRANT ALL and then
remove privileges for certain objects:
GRANT ALL ON DATABASE foo TO user EXCEPT...
> It is perhaps interesting to do something like
> GRANT SELECT ON TABLE foo.* TO user;
> but I'm not sure this is so useful as to be worth enshrining in the
> syntax. You could also argue that it's a potential security hole since
> it'd be mighty easy to grant rights you didn't intend to on objects you
> didn't realize would match the wildcard. (And that'd be true in spades
> if the effect of the command were to automatically grant the same rights
> on matching objects created in the future, which is what I think some of
> the people asking for this sort of thing wanted. But I'm outright
> scared of that idea.)
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Design/Development
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rgp@systame.com, tgl@sss.pgh.pa.us, s.barnett-cormack@lancaster.ac.uk, olly@lfix.co.uk
Subject: Re: How do I grant access to entire database at
In-Reply-To: <BD2D6550.7FABE%rgp@systame.com>
References: <9472.1090874787@sss.pgh.pa.us> <BD2D6550.7FABE%rgp@systame.com>
* 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