From: Ronan Dunklau <ronan.dunklau@dalibo.com>
To: pgsql-pkg-debian@postgresql.org
Subject: pg_ctlcluster: permissions on logfile
Date: Tue, 07 Jul 2015 16:33:23 +0200
Message-ID: <2563828.fxAWEbx9PZ@ronan.dunklau.fr> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>
Hello,
We recently encountered a problem with using pg_ctlcluster: if the log file is
already present, but the cluster user does not have the rights to write to it
(like it can happen with a misconfigured logrotate), pg_ctlcluster fails
without any other information.
It would be great if pg_ctlcluster could check the permissions on the logfile
and emit a warning on it.
The --foreground option does not have to consider this log file, since it
won't be used at all.
Thank you.
--
Ronan Dunklau
http://dalibo.com - http://dalibo.orgAttachments:
signature.asc (application/pgp-signature, 472B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-pkg-debian@postgresql.org
Cc: ronan.dunklau@dalibo.com
Subject: Re: pg_ctlcluster: permissions on logfile
In-Reply-To: <2563828.fxAWEbx9PZ@ronan.dunklau.fr>
References: <2563828.fxAWEbx9PZ@ronan.dunklau.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox