我尝试在postgres 9.5.7中创建表空间。我正在使用此查询:
CREATE TABLESPACE fastspace OWNER postgres LOCATION '/home/indianic/Dexter/';
并显示此错误
ERROR: could not set permissions on directory "/home/indianic/Dexter": Operation not permitted
********** Error **********
ERROR: could not set permissions on directory "/home/indianic/Dexter": Operation not permitted
SQL state: 42501
答案 0 :(得分:0)
没有。您必须更改目录的所有者,使其属于Linux用户 postgres ,并且还要分组 postgres ,然后在目录上执行chmod 770.