hyelluas <helen_yelluas(at)mcafee(dot)com> writes:
> I want to create a tablespace from a command line.
> I created the directory and set chmod to 0700 , still could not do it.
> [root(at)Prof20_52_91 data]# chmod 0700 /data/psql/my_test1
... that says "psql" ...
> postgres=# create tablespace my_test1 OWNER postgres location
> '/data/pgsql/my_test1';
> ERROR: could not set permissions on directory "/data/pgsql/my_test1": No
> such file or directory
... that says "pgsql" ...
regards, tom lane