Grant permissions to user for any new tables created in postgresql

后端 未结 3 872
没有蜡笔的小新
没有蜡笔的小新 2020-12-09 17:28

Currently I am using this to grant permissions:

grant select on all tables in schema public to ;

alter default privileges in schema public          


        
3条回答
  •  情深已故
    2020-12-09 18:27

    Found the answer. It is in this line in the documentation.

    "You can change default privileges only for objects that will be created by yourself or by roles that you are a member of."

    I was using alter default privileges from a different user than the one creating the tables.

提交回复
热议问题