Re: Log file permissions? - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Log file permissions?
Date
Msg-id 5ded07e00801310653t2eb15498w37b0acb19a2e3cf@mail.gmail.com
Whole thread Raw
In response to Log file permissions?  (Glyn Astill <glynastill@yahoo.co.uk>)
Responses Re: Log file permissions?
List pgsql-general
On 1/31/08, Glyn Astill <glynastill@yahoo.co.uk> wrote:
> I've noticed that by default postgres writes its log files read/write
> only by the postgres user.
>
> I have a nagios user I want to be able to analyse the logs.
>
> Is there a way to make postgres output them so they can be read by a
> group? Or am I going to have to write a script?

PG itself only writes to stdout/stderr or uses syslog().  The way logs
are generated and stored is distro-specific, so you need to look at
how your distro does things (perhaps modifying the startup script).

-Doug

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [ADMIN] Backup
Next
From: Chander Ganesan
Date:
Subject: Re: [ADMIN] Backup