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 1qSt2I-007fmZ-Bh for pgsql-general@arkaria.postgresql.org; Mon, 07 Aug 2023 05:44:10 +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 1qSt2G-006k8o-Eu for pgsql-general@arkaria.postgresql.org; Mon, 07 Aug 2023 05:44:08 +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 1qSt2G-006k8f-41 for pgsql-general@lists.postgresql.org; Mon, 07 Aug 2023 05:44:08 +0000 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qSt2D-000xxp-Km for pgsql-general@lists.postgresql.org; Mon, 07 Aug 2023 05:44:07 +0000 Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-76714caf466so335989085a.1 for ; Sun, 06 Aug 2023 22:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691387044; x=1691991844; h=subject:to:content-language:user-agent:mime-version:date:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=/v2GQwrzQqL6hZ6dA6UwhG2PSjV8Pp6ZTXsxE12Xkms=; b=cDDtexnOuIU+n7gcA/HAWWBzu1YUYG35Vh509PWpUCTeCSHL4Da4Rv9dW9BN3Ycl6h ay9MgM2NUT/WGqnh4FH2g7zhCsAthuXPm82E0hM6X3v/VUzyqs2cu7tUWEeSaXaeaSDK xDQH2HnA2s0akfRbxEefHVySr9CQm5qHueWF9FY5YjeiHR5UYOnMtOkbGO7PLkm0uhN9 eap7WQwd7uWrUOfnKBdNPHg4XFB/He0Xzcz909hvOiucLd7LiR3MPU59LGJkfWHItByU mS9u70BzacBV/kRLRLrWoBbdZTKN0WA960WhuEw0SHwaRsxdmktZsFn0atPKXwJ7gyxo YfYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691387044; x=1691991844; h=subject:to:content-language:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/v2GQwrzQqL6hZ6dA6UwhG2PSjV8Pp6ZTXsxE12Xkms=; b=GQVC6bm+y2engng9BAcwdDaN9R14EqYPbO7kZAjCwl8gQuBkYEGqZnJnmVlQdY8bAK j/m0ivTnL2b25EmTielhrRgW4XMb6D3CM10I6RWGg0XUhpYnMTZOHxHY9HBzQ8707TwG +GC1fb5wY1ZKWfMKf+jxgbK4/bhQFGfzsk/I6LIxCLbcJZAmbpcG58DApyIVBLP7M+ph 8j4ZuQs/cX7RdgGU3B1unP1n47uzvUSAk8DaYRCVGBA86rnHrJDdsmyaxqAacVPCLzrj thYE2ko2gkoQgCI80qsqoTyONUy/J2rz7I3CJJfRJ7jTIDFQxuprjuH0oLMZNYbKJQJg BO6g== X-Gm-Message-State: AOJu0YwnDZMhHhk/rxMp5nJwdvrOI4RREWaHD0OAbdiRVxPjnD3VqinD UVC6H2i5cl2CJiOutb+FveGrJNqK8xbVXw== X-Google-Smtp-Source: AGHT+IERKgFfqhMT3JV4M9gVXg71O611/VBUr10GHMF/JGMjqvPLv33RKJ2RK6CCfSHlAoKwA31nuQ== X-Received: by 2002:a05:620a:c55:b0:76c:9769:ebd4 with SMTP id u21-20020a05620a0c5500b0076c9769ebd4mr10075759qki.41.1691387044473; Sun, 06 Aug 2023 22:44:04 -0700 (PDT) Received: from [192.168.2.170] ([67.70.150.114]) by smtp.gmail.com with ESMTPSA id ou20-20020a05620a621400b00767cfb1e859sm2372381qkn.47.2023.08.06.22.44.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Aug 2023 22:44:04 -0700 (PDT) From: Amn Ojee Uw X-Google-Original-From: Amn Ojee Uw Content-Type: multipart/alternative; boundary="------------slgQJV6mIZC7Y0FXP36PW80i" Message-ID: Date: Mon, 7 Aug 2023 01:43:55 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Content-Language: en-US To: pgsql-general@lists.postgresql.org Subject: My 1st TABLESPACE 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. --------------slgQJV6mIZC7Y0FXP36PW80i Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------slgQJV6mIZC7Y0FXP36PW80i Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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.


--------------slgQJV6mIZC7Y0FXP36PW80i--