如何在postgreSQL 9.5.7中创建TABLESPACE?

时间:2017-07-19 12:28:15

标签: postgresql

我尝试在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

1 个答案:

答案 0 :(得分:0)

没有。您必须更改目录的所有者,使其属于Linux用户 postgres ,并且还要分组 postgres ,然后在目录上执行chmod 770.