Re: Allow GRANT/REVOKE permissions to be applied to all schema
От
Peter Eisentraut
Тема
Re: Allow GRANT/REVOKE permissions to be applied to all schema
Дата
Msg-id
200502011730.54459.peter_e@gmx.net
Ответ на
Список
Дерево обсуждения
Re: Allow GRANT/REVOKE permissions to be applied to all schema Josh Berkus <josh@agliodbs.com>
Re: Allow GRANT/REVOKE permissions to be applied to all schema Tom Lane <tgl@sss.pgh.pa.us>
Re: Allow GRANT/REVOKE permissions to be applied to all schema Jaime Casanova <systemguards@yahoo.com>
Re: Allow GRANT/REVOKE permissions to be applied to all schema Josh Berkus <josh@agliodbs.com>
Re: Allow GRANT/REVOKE permissions to be applied to all Richard Huxton <dev@archonet.com>
Re: Allow GRANT/REVOKE permissions to be applied to all schema Josh Berkus <josh@agliodbs.com>
Re: Allow GRANT/REVOKE permissions to be applied to all schema Peter Eisentraut <peter_e@gmx.net>
Re: Allow GRANT/REVOKE permissions to be applied to all Richard Huxton <dev@archonet.com>
Re: Allow GRANT/REVOKE permissions to be applied to all Peter Eisentraut <peter_e@gmx.net>
Re: Allow GRANT/REVOKE permissions to be applied to all Abhijit Menon-Sen <ams@oryx.com>
Re: Allow GRANT/REVOKE permissions to be applied to all Abhijit Menon-Sen <ams@oryx.com>
Josh Berkus wrote:
> > pg_find --type=table --schema=foo --name='system_*'
> > --execute='GRANT ALL ON % TO myuser'
>
> Hey, that's a way keen idea. Regardless of what we do with
> GRANT/REVOKE. You don't happen to, uh, have any code for that?
psql -t -A -c "select tablename from pg_tables where schemaname = 'foo'
and tablename like 'system_%';" | xargs -i -n 1 psql -c 'grant all on
{} to myuser;'
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления
От: Richard Huxton
Дата: