Granting rights on all tables, sequences and views

Поиск
Список
Период
Сортировка
От Raphael Bauduin
Тема Granting rights on all tables, sequences and views
Дата
Msg-id 20020130101608.GE14044@raphael
обсуждение исходный текст
Список pgsql-novice
Is this really the only way?
for f in `echo "\\z" | psql -u <suser> <database> | cut -d \| -f 2`; do echo "GRANT ALL ON $f TO <new-user>;" | psql -u
<suser><database>; done 
(found on http://www.postgresql.org/idocs/index.php?privileges.html)


The problem is that the \zz doesn't seem to be useful for me...
mydb=> \zz
Access permissions for database "mydb"
 Relation | Access permissions
 ----------+--------------------
 (0 rows)



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

Предыдущее
От: Torbjörn Andersson
Дата:
Сообщение: 16k query limit
Следующее
От: Raphael Bauduin
Дата:
Сообщение: owner of a table