我正在尝试创建一个新的表空间:
>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