Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qSt6Y-007fxN-OB for pgsql-general@arkaria.postgresql.org; Mon, 07 Aug 2023 05:48:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qSt6X-006pzn-65 for pgsql-general@arkaria.postgresql.org; Mon, 07 Aug 2023 05:48:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qSt6W-006pzf-QP for pgsql-general@lists.postgresql.org; Mon, 07 Aug 2023 05:48:33 +0000 Received: from smtp-relay-01-6.dondominio.net ([31.214.176.29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qSt6U-000y2P-6f for pgsql-general@lists.postgresql.org; Mon, 07 Aug 2023 05:48:31 +0000 Received: from localhost (smtp-relay-local.scip.local [127.0.0.1]) by smtp-relay.dondominio.com (Postfix) with SMTP id D4AC1405B6 for ; Mon, 7 Aug 2023 07:48:26 +0200 (CEST) Received: from mail-node.dondominio.com by smtp-relay.dondominio.com (Postfix) with ESMTP id 5AA174054B for ; Mon, 7 Aug 2023 07:48:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=negora.com; s=dddk; t=1691387304; bh=KGn9JRSK4dlq4rvlI6YR1qgKqEiw5q177b3MtnVjpAY=; h=Content-Type:Message-ID:Date:Subject:To:From; b=n7qBPmlFHqbifghp0ZOSvQ0LpSYkKokGTlh3Ep36Mqcfs1z/lY51/SYXiymNwPSxV 82hu5gsj9U+3miUVtKhyuHYxjBt3bX8Hg33ZN7hij/i4jujsK/W4ahZ9WFBTRyXubQ nbMxwgtqKu0PmC0FRuTaOnhT7jyzzpDOHFj51Ytg= Received: from [192.168.6.196] (unknown [194.179.104.225]) (Authenticated sender: public@negora.com) by mail-node.dondominio.com (Postfix) with ESMTPA id 32B5A408A5 for ; Mon, 7 Aug 2023 07:48:24 +0200 (CEST) Content-Type: multipart/alternative; boundary="------------VlE09Th7IuGpUUYINN14Crij" Message-ID: <52ffd5a0-89b2-931d-f135-cbd65027eb28@negora.com> Date: Mon, 7 Aug 2023 07:48:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: My 1st TABLESPACE To: pgsql-general@lists.postgresql.org References: Content-Language: en-US, es-ES, en-GB From: negora In-Reply-To: X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail-node.dondominio.com [0.0.0.0]); Mon, 07 Aug 2023 07:48:24 +0200 (CEST) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------VlE09Th7IuGpUUYINN14Crij Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi: Although the "postgres" user owns the "data" directory, Has he access to the whole branch of directories? Maybe the problem is that he can't reach the "data" directory. Regards. On 07/08/2023 07:43, Amn Ojee Uw wrote: > > I'd like to create a TABLESPACE, so, following this web page > ,  > I have done the following : > > *mkdir > /home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data* > > *sudo chown postgres:postgres > /home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data* > > *sudo -u postgres psql* > > *\du** > ** arbolone    | Cannot login                                      | {}** > ** chispa |                                                            > | {prosafe}** > ** workerbee | Superuser, Create DB | {arbolone}** > ** jme |                                                            | > {arbolone}** > ** postgres    | Superuser, Create role, Create DB, Replication, > Bypass RLS | {}** > ** prosafe      | Cannot login                                      | {}** > **** > **CREATE TABLESPACE jmetablespace OWNER jme LOCATION > '/home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data';* > > The *CREATE **TABLESPACE* schema throws this error message : > > /*ERROR:  could not set permissions on directory > "/home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data": > Permission denied*/ > > I have followed the web page to the best of my abilities, and AFAIK, > the postgres user owns the folder '*data*'. > > I know that something is missing, where did I go wrong and how can I > resolve this issue? > > > Thanks in advance. > > --------------VlE09Th7IuGpUUYINN14Crij Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi:

Although the "postgres" user owns the "data" directory, Has he access to the whole branch of directories? Maybe the problem is that he can't reach the "data" directory.

Regards.


On 07/08/2023 07:43, Amn Ojee Uw wrote:

I'd like to create a TABLESPACE, so, following this web page,  I have done the following :

mkdir /home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data

sudo chown postgres:postgres /home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data

sudo -u postgres psql

\du
 arbolone    | Cannot login                                      | {}
 chispa        |                                                            | {prosafe}
 workerbee | Superuser, Create DB                        | {arbolone}
 jme            |                                                            | {arbolone}
 postgres    | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
 prosafe      | Cannot login                                      | {}
 
CREATE TABLESPACE jmetablespace OWNER jme LOCATION '/home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data';

The CREATE TABLESPACE schema throws this error message :

ERROR:  could not set permissions on directory "/home/my_debian_account/Documents/NetbeansWorkSpace/JavaSE/Jme/database/postgresql/data": Permission denied

I have followed the web page to the best of my abilities, and AFAIK, the postgres user owns the folder 'data'.

I know that something is missing, where did I go wrong and how can I resolve this issue?


Thanks in advance.


--------------VlE09Th7IuGpUUYINN14Crij--