Granting rights on all tables, sequences and views

Поиск
Список
Период
Сортировка
Искать

Granting rights on all tables, sequences and views

От:
Raphael Bauduin <raphael@be.easynet.net>
Дата:
Is this really the only way?
for f in `echo "\\z" | psql -u   | cut -d \| -f 2`; do echo "GRANT ALL ON $f TO ;" | psql -u  ; 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)
  

FAQ