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

From Alvaro Herrera
Subject Re: Log file permissions?
Date
Msg-id 20080131152141.GF8602@alvh.no-ip.org
Whole thread Raw
In response to Re: Log file permissions?  (Glyn Astill <glynastill@yahoo.co.uk>)
Responses Re: Log file permissions?
Re: Log file permissions?
Re: Log file permissions?
Re: Log file permissions?
List pgsql-general
Glyn Astill wrote:

> I'm not piping it to a file, postgres is managing the logs. Is there
> any way to manage the permissions, or do I just need to create a
> script to change the permissions?

I think you should be able to chmod the files after they have been
created.  The postmaster changes its umask to 0077, so no file is
group-readable.  I don't think is configurable either.

Perhaps we should add a log_file_group option, to which we would chgrp()
the log files.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Vivek Khera
Date:
Subject: Re: How can I avoid PGPool as a single point of failure?
Next
From: Simon Riggs
Date:
Subject: Re: [ADMIN] Backup