Re: My 1st TABLESPACE

Поиск
Список
Период
Сортировка
От negora
Тема Re: My 1st TABLESPACE
Дата
Msg-id 52ffd5a0-89b2-931d-f135-cbd65027eb28@negora.com
обсуждение исходный текст
Ответ на My 1st TABLESPACE  (Amn Ojee Uw <amnojeeuw@gmail.com>)
Ответы Re: My 1st TABLESPACE
Список pgsql-general

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.


В списке pgsql-general по дате отправления:

Предыдущее
От: Amn Ojee Uw
Дата:
Сообщение: My 1st TABLESPACE
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Dropping all tables in a database