Re: WHat foldsers in the data folder would I need to link to have my data on a different drive?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WHat foldsers in the data folder would I need to link to have my data on a different drive?
Дата
Msg-id 24232.1108568234@sss.pgh.pa.us
обсуждение исходный текст
Ответ на WHat foldsers in the data folder would I need to link to have my data on a different drive?  ("Joel Fradkin" <jfradkin@wazagua.com>)
Ответы Re: WHat foldsers in the data folder would I need to link to have my data on a different drive?  ("Joel Fradkin" <jfradkin@wazagua.com>)
Список pgsql-admin
"Joel Fradkin" <jfradkin@wazagua.com> writes:
> I originally used the data_dir conf option to have my data on /pgslq/data,
> but am thinking I should do it the way I did the /wal with a link. My
> thinking is then the pid would still be in /var not /pgsql, and the stratup
> and shutdown would work better.

I am just guessing here, not having done the experiment --- but I'm not
at all sure that that will let you escape the SELinux policy
restrictions.  I suspect you will find that you have no choice but to
alter the policy to allow the postgres daemon to access your nondefault
data area.  (Or turn off SELinux, but that might be an overreaction.)

It might be possible to make an end-run by using a nondefault
installation of Postgres --- if the postmaster executable doesn't live
in /usr/bin, I *think* (but am not certain) that the SELinux targeted
policy will not think it's supposed to constrain the daemon's actions.
Then you are back to relying solely on filesystem permissions; but that
seems like plenty to me.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: when datas filesystem is full how to do
Следующее
От: "Joel Fradkin"
Дата:
Сообщение: Re: WHat foldsers in the data folder would I need to link to have my data on a different drive?