0

I have installed centos 6.3 On vmware, and the postgresql is self-contained, the Version is PostgreSQL 8.4.13 on i386-redhat-linux-gnu.

I want to create a tablespace with command like This: create tablespace foo LOCATION '/usr/foo1';

But I am getting Error like this: ERROR: could not set permissions on directory "/tmp/foo1": Permission denied

Then I checked the /tmp/foo1's owner and the owner is indeed postgres, So I confused about this.

Can anyone help me?

4

1 回答 1

0

我会检查的事情:

  1. 通常 /tmp 应该有开放的权限。但是,如果它们被关闭...

  2. /tmp 在什么文件系统上?它支持文件权限吗?

  3. /tmp 的适当文件系统挂载选项是什么?这些会干扰吗?

于 2013-06-08T10:47:14.557 回答