pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: spam_from_pgsql_lists@chezphil.org
Subject: BUG #15331: Please check if recovery.conf can be renamed
Date: Thu, 16 Aug 2018 11:30:09 +0000
Message-ID: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15331
Logged by:          Phil Endecott
Email address:      spam_from_pgsql_lists@chezphil.org
PostgreSQL version: 9.6.10
Operating system:   Debian Stretch
Description:        

When a standby server is promoted it renames recovery.conf to
recovery.done.
That will not be possible if that file is owned by root or otherwise has the
wrong permissions.  It's unusual for a program to modify its own
configuration files like this.
It would be great if PostgreSQL could check that the permissions are
suitable when it starts, and emit a warning if not.  Currently it only fails
when asked to promote, with this log message:
FATAL:  could not open file "recovery.conf": Permission denied
(Note that it only says "could not open", not "could not rename".)
This means that promotion fails, and for me even after fixing the
permissions the system was in an odd state that took some work to fix.
Failover is hard to get right; emitting a warning earlier in this case would
mean one less thing to go wrong.



view thread (4+ messages)  latest in thread

Message-ID: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org>
Permalink:  ../153441900952.1505.13879104449657146995@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/153441900952.1505.13879104449657146995@wrigleys.postgresql.org

 · 

reply

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, spam_from_pgsql_lists@chezphil.org
  Subject: Re: BUG #15331: Please check if recovery.conf can be renamed
  In-Reply-To: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org>
  References: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org>

* 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