PostgreSQL - relation [table] does not exist

前端 未结 2 988
刺人心
刺人心 2021-01-11 10:30

I just created a new user that I want to have access to a limited number of our public tables. The user is created and I granted privs to one public table for now. I then lo

2条回答
  •  佛祖请我去吃肉
    2021-01-11 11:28

    Even though I was granting privileges to my pgb2b user, I forgot to specify usage for that user:

    GRANT usage on schema public to pgb2b;
    

    This fixed the issue. I found this post about setting up PostgreSQL user permissions very helpful.

提交回复
热议问题