From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl>, David Fetter <david(at)fetter(dot)org> |
Subject: | Re: adding stuff to parser, question |
Date: | 2009-02-03 15:43:04 |
Message-ID: | 200902031743.05163.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Saturday 31 January 2009 19:30:36 Andrew Dunstan wrote:
> > ------------------------------------------------------------------------
> >
> > Allow GRANT/REVOKE permissions to be applied to all schema objects
> > with one command
> > The proposed syntax is: GRANT SELECT ON ALL TABLES IN public TO
> > phpuser; GRANT SELECT ON NEW TABLES IN public TO phpuser;
> >
> >
> >
> > ------------------------------------------------------------------------
>
> But the syntax you posted does not do this at all. Where does it
> restrict the grant to a single schema, like the syntax above?
Since any kind of implementation is going to have to scan and filter pg_class
(and possibly pg_namespace), I would consider going one step further and
allowing some kind of wildcard mechanism. This could later be extended to
lots of other useful places, such as, drop all tables like 'test%'.
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2009-02-03 15:54:14 | Re: add_path optimization |
Previous Message | Kevin Grittner | 2009-02-03 15:43:03 | Re: add_path optimization |