From: Amn Ojee Uw <amnojeeuw@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: My 1st TABLESPACE
Date: Mon, 7 Aug 2023 01:43:55 -0400
Message-ID: <b73ce442-5a0e-3e0f-626b-bd9906937e8e@gmail.com> (raw)
I'd like to create a TABLESPACE, so, following this web page
<https://www.postgresql.org/docs/current/sql-createtablespace.html>, 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: amnojeeuw@gmail.com
Subject: Re: My 1st TABLESPACE
In-Reply-To: <b73ce442-5a0e-3e0f-626b-bd9906937e8e@gmail.com>
References: <b73ce442-5a0e-3e0f-626b-bd9906937e8e@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox