pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: WHat foldsers in the data folder would I need to link to have my data on a different drive?
Date: Wed, 16 Feb 2005 10:37:14 -0500
Message-ID: <24232.1108568234@sss.pgh.pa.us> (raw)
In-Reply-To: <000701c51437$bf1a8430$797ba8c0@jfradkin>
References: <000701c51437$bf1a8430$797ba8c0@jfradkin>

"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



view thread (3+ messages)  latest in thread

Message-ID: <24232.1108568234@sss.pgh.pa.us>
Permalink:  ../24232.1108568234@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24232.1108568234@sss.pgh.pa.us

 · 

reply

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jfradkin@wazagua.com
  Subject: Re: WHat foldsers in the data folder would I need to link to have my data on a different drive?
  In-Reply-To: <24232.1108568234@sss.pgh.pa.us>
  References: <000701c51437$bf1a8430$797ba8c0@jfradkin> <24232.1108568234@sss.pgh.pa.us>

* 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