Re: What's the logic of touching /var/log/pgsql ?

From: Strahinja Kustudić <strahinjak(at)nordeus(dot)com>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, pgsql-pkg-yum <pgsql-pkg-yum(at)postgresql(dot)org>
Subject: Re: What's the logic of touching /var/log/pgsql ?
Date: 2015-02-11 18:32:48
Message-ID: CADKbJJXfa4TC7wRCJNH_QHqFETK5F0rJ7nUU34HncoihB_axiA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

Here is a patch which removes this from all currently maintained versions.

Strahinja Kustudić | Lead System Engineer | Nordeus

On Wed, Feb 11, 2015 at 7:06 PM, Strahinja Kustudić <strahinjak(at)nordeus(dot)com>
wrote:

> 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(at)gunduz(dot)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
>>
>>
>

Attachment Content-Type Size
remove-var-log-pgsql.patch text/x-patch 12.7 KB

In response to

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim Gündüz 2015-02-11 19:00:25 Re: What's the logic of touching /var/log/pgsql ?
Previous Message Strahinja Kustudić 2015-02-11 18:06:53 Re: What's the logic of touching /var/log/pgsql ?