无法创建新的表空间

时间:2017-10-19 11:33:37

标签: linux postgresql

我正在尝试创建一个新的表空间:

>CREATE TABLESPACE db2 LOCATION '/mnt/database2/db2';
>ERROR:  directory "/mnt/database2/db2" does not exist

但目录存在:

>[ -d '/mnt/database2/db2' ]&& echo ¨exists¨||echo ¨not exists¨  
>¨exists¨

有什么不对?

UPD:

# \! ls /mnt/database2/db2
# \! ls /mnt/database2/db3
ls: cannot access /mnt/database2/db3: No such file or directory
#  CREATE TABLESPACE db2 LOCATION '/mnt/database2/db2';
ERROR:  directory "/mnt/database2/db2" does not exist
#  CREATE TABLESPACE db2 LOCATION '/mnt/database2/db3';
ERROR:  directory "/mnt/database2/db3" does not exist

0 个答案:

没有答案