PostgreSQL 9 brought the new GRANT Option "...ON ALL TABLES...".
How can I do the same in PostgreSQL 8.2?
I have a Database 'myDatabase' In myDatabse are 2 Schemas 'public' and 'myschema' with each around 20 Tables. Now I created a new user for testing which needs to have all privileges on 'myschema'.
I already tried:
GRANT ALL ON SCHEMA myschema TO testuser;
GRANT ALL ON DATABASE myDatabse TO testuser;
GRANT ALL ON ALL TABLES IN SCHEMA myschema; (Which doesn't work in postgres 8)
What would work is the following. But I'm sure there must be a better way:
GRANT ALL ON myschema.table1 TO testuser;
GRANT ALL ON myschema.table2 TO testuser;
...
GRANT ALL ON myschema.tableN TO testuser;