Re: adding stuff to parser, question

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: adding stuff to parser, question
Дата
Msg-id 200902031743.05163.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: adding stuff to parser, question  (Andrew Dunstan <andrew@dunslane.net>)
Список 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%'.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Hot Standby (v9d)
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: add_path optimization