Re: What's the logic of touching /var/log/pgsql ? - Mailing list pgsql-pkg-yum

From Strahinja Kustudić
Subject Re: What's the logic of touching /var/log/pgsql ?
Date
Msg-id CADKbJJWZ3s4Mq6ZBTPkKFbDrGSaDBRDxtsFEJ5yOCgwJRSuAMg@mail.gmail.com
Whole thread Raw
In response to Re: What's the logic of touching /var/log/pgsql ?  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: What's the logic of touching /var/log/pgsql ?
Re: What's the logic of touching /var/log/pgsql ?
List pgsql-pkg-yum
Sorry for replying to an old topic, but it would be really good to remove this from new packages, since it's useless, and that file path could be a nice directory for storing postgres logs outside the data dir.

Do you guys accept patches for the RPM repository?


Strahinja Kustudić
| Lead System Engineer | Nordeus

On Fri, Aug 8, 2014 at 2:10 AM, Devrim Gündüz <devrim@gunduz.org> wrote:

Hi,

On Fri, 2014-08-01 at 15:52 +0800, Craig Ringer wrote:
> The PGDG spec files for PostgreSQL have the following lines in the
> server preinst section:
>
> %pre server
> ... creates Pg user ...
> touch /var/log/pgsql
> chown postgres:postgres /var/log/pgsql
> chmod 0700 /var/log/pgsql
>
>
> What's the logic there? Why create an empty /var/log/pgsql file owned
> by user 'pgsql' ? It's not used for anything and just seems confusing.

It is obsoleted, can be removed.

Regards,

--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


pgsql-pkg-yum by date:

Previous
From: Jeff Frost
Date:
Subject: Re: Retiring Fedora 19
Next
From: Strahinja Kustudić
Date:
Subject: Re: What's the logic of touching /var/log/pgsql ?