Re: PostgreSQL systemd config scheme change

From: Pavel Raiskup <praiskup(at)redhat(dot)com>
To: Development discussions related to Fedora <devel(at)lists(dot)fedoraproject(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, devrim(at)gunduz(dot)org, Florian Weimer <fweimer(at)redhat(dot)com>, Darin Perusich <darin(at)darins(dot)net>, hhorak(at)redhat(dot)com, jmlich(at)redhat(dot)com, pgsql-pkg-yum(at)postgresql(dot)org
Subject: Re: PostgreSQL systemd config scheme change
Date: 2014-06-24 10:36:35
Message-ID: 727709499.39647108.1403606195877.JavaMail.zimbra@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

<OT> Argh, it is quite painful to keep all CC's in loop :(. I suppose
that something is broken with this list. Both of email replies missed my
MAILBOX and both have trimmed CC lists. Trying to reattach but not giving
it a big chance. </OT>

> ----- Original Message -----
> From: Florian Weimer <fweimer(at)redhat(dot)com>
>
> On 06/23/2014 04:23 PM, Pavel Raiskup wrote:
> > What seems to be better approach is to have real configuration file,
> > such one for which '$ rpm -qc postgresql-server' would not be quiet.
> > Lets say:
> >
> > $ cat /etc/postgresql/postgresql
> > PGDATA=/some/other/place/than/default
>
> I think for Fedora, the file ought to be in /etc/sysconfig.

I'm not sure about this; right because /etc/sysconfig is Fedora specific
directory. We are discouraged to use that directory by systemd.. simply,
dunno. That said, both /etc/sysconfig/postgresql & /etc/postgresql would work
for me and I hope every admin is able to/aware of `rpm -qc postgresql-server`.

For the more cross-distro solution, I would prefer /etc/postgresql/
though.

> ----- Original Message -----
> From: Darin Perusich <darin(at)darins(dot)net>
> On Mon, Jun 23, 2014 at 3:00 PM, Florian Weimer <fweimer(at)redhat(dot)com> wrote:
> > On 06/23/2014 04:23 PM, Pavel Raiskup wrote:
> >> What seems to be better approach is to have real configuration file, such
> >> one
> >> for which '$ rpm -qc postgresql-server' would not be quiet. Lets say:
> >>
> >> $ cat /etc/postgresql/postgresql
> >> PGDATA=/some/other/place/than/default
> >
> > I think for Fedora, the file ought to be in /etc/sysconfig.
>
> The packages from yum.postgresql.org leverage
> /etc/sysconfig/pgsql/postgresql-VERSION. Theirs also leverages PGOPTS
> so one can set additional CLI options, say if you want to place your
> config files outside PGDATA with "-c
> config_file=/etc/postgresql/postgresql.conf".

I think that the part of README.rpm-dist from postgresql9{3,4} is outdated
as those parts describe SysV initscripts. Devrim?

Btw., that /etc/postgresql could calmly be shared by yum.postgresql.org
or any future SCL PostgreSQL as it should not collide by design - as long
as unit name do not clash, configuration should also not.

Pavel

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Nelson Green 2014-06-24 19:26:27 Oops
Previous Message nag eswar 2014-06-24 05:48:29 In Home page it showing NOY FOR PRODUCTION instead of NOT for production