Re: [DOCS] Default privileges not working

2016-09-30 Thread Jozef Pažin
Hi Stephen, thanks for your help, I tried it, but without success. I think there is small typo in your proposal, you need to set USER or ROLE keyword in ALTER DEFAULT PRIVILEGES: > Default privileges are assigned to roles. In other words, you can only > say "tables created by user X have default

Re: [DOCS] Default privileges not working

2016-09-30 Thread Stephen Frost
Jozef, * Jozef Pažin (ati...@gmail.com) wrote: > -- grant for new tables > -- only users "postgres" and "test_power" can create tables; > alter default privileges for role "test_power" in schema public grant > select on tables to "test_readonly", "test_readwrite", "test_power"; > alter default pri

Re: [DOCS] Default privileges not working

2016-09-29 Thread Stephen Frost
Greetings, * ati...@gmail.com (ati...@gmail.com) wrote: > Thanks for the reply. [...] > alter default privileges in schema public grant select on tables to > "test_readonly", "test_readwrite", "test_power"; > alter default privileges in schema public grant insert, update, delete on > tables to "te