Re: BUG #2088: logfiles only readable by instance owner - Mailing list pgsql-bugs

From Bruno Wolff III
Subject Re: BUG #2088: logfiles only readable by instance owner
Date
Msg-id 20051203203241.GA23035@wolff.to
Whole thread Raw
In response to Re: BUG #2088: logfiles only readable by instance owner  (Dick Snippe <Dick.Snippe@tech.omroep.nl>)
List pgsql-bugs
On Fri, Dec 02, 2005 at 23:30:21 +0100,
  Dick Snippe <Dick.Snippe@tech.omroep.nl> wrote:
>
> Using a log rotation program is possible (apache rotatelogs comes to mind),
> but that would require starting postgresql with something like
>     postmaster | rotatelogs
> and just hope that rotetelogs doesn't die in the weeks or months that
> postmaster runs. Also postmaster can't be started as a daemon in this case.

You can use multilog in DJB's daemontools package to do this.

It writes the logfiles publicly readable, so you control access to them via
the directory they are contained in.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2092: No answer to bug reports 1975 and 2055
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #2089: Documentation bug: Triggers in plpythonu