pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: spam_from_pgsql_lists@chezphil.org
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15331: Please check if recovery.conf can be renamed
Date: Thu, 16 Aug 2018 05:09:43 -0700
Message-ID: <20180816120943.barvdv5c6bxo46ac@alap3.anarazel.de> (raw)
In-Reply-To: <20180816115055.GN3681@paquier.xyz>
References: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org>
	<20180816115055.GN3681@paquier.xyz>

On 2018-08-16 20:50:55 +0900, Michael Paquier wrote:
> On Thu, Aug 16, 2018 at 11:30:09AM +0000, PG Bug reporting form wrote:
> > 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.
> 
> I think that you would be interested in this recent commit (fixed as of
> the last round of minor releases):
> commit: cbc55da556bbcb649e059804009c38100ee98884
> committer: Michael Paquier <michael@paquier.xyz>
> date: Mon, 9 Jul 2018 10:22:34 +0900
> Rework order of end-of-recovery actions to delay timeline history write
> 
> And this thread:
> https://postgr.es/m/CABUevEz09XY2EevA2dLjPCY-C5UO4Hq=XxmXLmF6ipNFecbShQ@mail.gmail.com
> 
> To give you a summary, once recovery finished and before recovery.conf
> was renamed, some on-disk actions happened, which could put the cluster
> in a weird state, perhaps similarly to what you saw.

How would this address OP's concern? You'd still not learn meaningfully
earlier that your attempted promotion failed (instead of learning of the
problem before you ever promote).

Greetings,

Andres Freund




view thread (4+ messages)  latest in thread

Message-ID: <20180816120943.barvdv5c6bxo46ac@alap3.anarazel.de>
Permalink:  ../20180816120943.barvdv5c6bxo46ac@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180816120943.barvdv5c6bxo46ac@alap3.anarazel.de

 · 

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: andres@anarazel.de, michael@paquier.xyz, spam_from_pgsql_lists@chezphil.org
  Subject: Re: BUG #15331: Please check if recovery.conf can be renamed
  In-Reply-To: <20180816120943.barvdv5c6bxo46ac@alap3.anarazel.de>
  References: <153441900952.1505.13879104449657146995@wrigleys.postgresql.org> <20180816115055.GN3681@paquier.xyz> <20180816120943.barvdv5c6bxo46ac@alap3.anarazel.de>

* 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