How to change mode for cluster log?

From: Binghan <binghanluc(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: How to change mode for cluster log?
Date: 2021-01-26 14:33:14
Message-ID: CA+GVamEFyj1v8aRFPGmC3YXVUqJOodKV1PhHV4ETmUA5Ut0-Gw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I have the following configuration in postgresql.conf. However, it only
ensure the mode 600 for file under pg_log. The cluster log file
postgresql-10-main.log has 640. How can control the mode for cluster log in
postgres.

logging_collector = off log_directory = '/var/log/postgresql/pg_log'
log_filename = 'postgres-event.log' log_file_mode = 0600
BRs,
BH

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Paul Förster 2021-01-26 14:43:42 Re: How to change mode for cluster log?
Previous Message Ron 2021-01-26 14:21:09 Re: Unique constraint across all partitions?