[Pkg-postgresql-public] Bug#739276: Bug#739276: postgresql: Put pgstat in /var/run

Christoph Berg myon at debian.org
Fri Mar 7 16:34:48 UTC 2014


Re: Martin Pitt 2014-03-07 <20140307132111.GD2983 at piware.de>
> Christoph Berg [2014-03-07 13:40 +0100]:
> > pg_createcluster will still want to write to /etc/postgresql which is
> > owned by postgres, so the stats_temp_directory doesn't make the
> > situation worse.
> 
> That's different, though. If you use /etc/postgresql/ then
> pg_createcluster of course still needs to run as root, but if you
> specify a different owner than postgres, the cluster won't be able to
> start. You can also do this entirely as user by setting
> $PG_CLUSTER_CONF_ROOT.

> > I think this, and the %s idea are too complex for the resulting
> > effect. Imho what Christian proposed is just the right approach,
> > people can still disable it in createcluster.conf.
> 
> Then we need to ignore the option in pg_createcluster if the owner
> cannot write to it. It's special-casing a known option, but it's
> certainly doable.

Or setting PG_CLUSTER_CONF_ROOT should imply that PGSYSCONFDIR should
be different as well. (Explicitely or implicitely)

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/



More information about the Pkg-postgresql-public mailing list