Granting rights on all tables, sequences and views

From: Raphael Bauduin <raphael(at)be(dot)easynet(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Granting rights on all tables, sequences and views
Date: 2002-01-30 10:16:08
Message-ID: 20020130101608.GE14044@raphael
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-novice by date

  From Date Subject
Next Message Torbj=?ISO-8859-1?B?9g==?=rn Andersson 2002-01-30 10:17:25 16k query limit
Previous Message Chris Thompson 2002-01-30 09:21:17 Transactions