Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C78EB1337B80 for ; Sat, 26 Mar 2011 00:46:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 57389-06 for ; Sat, 26 Mar 2011 03:46:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 224071337B6E for ; Sat, 26 Mar 2011 00:46:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p2Q3k2vQ028897; Fri, 25 Mar 2011 23:46:03 -0400 (EDT) To: hyelluas cc: pgsql-admin@postgresql.org Subject: Re: can not create a tablespace from psql In-reply-to: <1301101845051-4265091.post@n5.nabble.com> References: <1301101845051-4265091.post@n5.nabble.com> Comments: In-reply-to hyelluas message dated "Fri, 25 Mar 2011 18:10:45 -0700" Date: Fri, 25 Mar 2011 23:46:02 -0400 Message-ID: <28896.1301111162@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/245 X-Sequence-Number: 37117 hyelluas 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@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