ERROR: permission denied for schema user1_gmail_com at character 46

前端 未结 3 1534
渐次进展
渐次进展 2020-12-24 05:30

I need to restrict a user, access only on a particualr schema tables only.So I tried following query and login as user1_gmail_com. But I got following error when I try to br

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-24 06:12

    This confused me. Still not sure I'm handling it correctly. Run \h grant for the syntax within psql. Here is how I managed to get my other users and groups to work as I needed:

    GRANT ALL PRIVILEGES ON SCHEMA foo TO GROUP bar;
    GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA foo TO GROUP bar;
    

提交回复
热议问题