Re: postgres 8.3 (Centos 5.1) create tablespace problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postgres 8.3 (Centos 5.1) create tablespace problem
Дата
Msg-id 28537.1204126423@sss.pgh.pa.us
обсуждение исходный текст
Ответ на postgres 8.3 (Centos 5.1) create tablespace problem  ("Nicholas Hemley" <nic.hemley@sidonis.com>)
Список pgsql-novice
"Nicholas Hemley" <nic.hemley@sidonis.com> writes:
> I am trying to create a new tablespace using postgres 8.3 (Centos 5.1) and
> am getting a permissions problem when trying to do so.

You didn't say exactly what happens, so this is just a guess, but seeing
that it's Centos I'm going to guess that you're being tripped up by
SELinux.  SELinux puts more permissions restrictions on daemon processes
(such as the postmaster) than exist for interactive shell sessions.
What you need to do is give the desired tablespace directory the same
SELinux context (see ls -Z) that the $PGDATA directory has, not just
the same ownership and permissions.

            regards, tom lane

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

Предыдущее
От: "Nicholas Hemley"
Дата:
Сообщение: postgres 8.3 (Centos 5.1) create tablespace problem
Следующее
От: robertski
Дата:
Сообщение: question about delete