Re: can not create a tablespace from psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hyelluas <helen_yelluas(at)mcafee(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: can not create a tablespace from psql
Date: 2011-03-26 03:46:02
Message-ID: 28896.1301111162@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Simon Luijk 2011-03-26 11:39:33 Re: Wal archives building up in slave pg_xlog dir
Previous Message Rosser Schwarz 2011-03-26 01:17:33 Re: can not create a tablespace from psql