pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Phil Endecott <spam_from_pgsql_lists@chezphil.org>
Cc: pgsql-general@lists.postgresql.org
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: Replication failure, slave requesting old segments
Date: Mon, 13 Aug 2018 08:30:50 -0400
Message-ID: <20180813123050.GC3326@tamriel.snowman.net> (raw)
In-Reply-To: <1534162725842@dmwebmail.dmwebmail.chezphil.org>
References: <2b671d4c-1504-9a38-3ad0-5dafe8fab92c@aklaver.com>
	<1534162725842@dmwebmail.dmwebmail.chezphil.org>

Greetings,

* Phil Endecott (spam_from_pgsql_lists@chezphil.org) wrote:
> Adrian Klaver wrote:
> >On 08/12/2018 03:54 PM, Stephen Frost wrote:
> >>Greetings,
> >>
> >>* Phil Endecott (spam_from_pgsql_lists@chezphil.org) wrote:
> >>>OK.  I think this is perhaps a documentation bug, maybe a missing
> >>>warning when the master reads its configuration, and maybe (as you say)
> >>>a bad default value.
> >>
> >>If we consider it to be an issue worthy of a change then we should
> >>probably just change the default value, and maybe not even allow it to
> >>be set lower than '1'.
> >
> >I would say leave the default at 0 as it leaves no doubt that you are
> >performing without a net. A setting of '1' implies you are covered and for
> >a fast moving cluster or slow moving one with sufficient downtime that
> >would not be the case.
> 
> Can you explain how it can fail in the case of a "slow moving cluster with
> sufficient downtime"?

I'm guessing 'sufficient downtime' here is, basically, 'offline until
the next checkpoint', which isn't actually all *that* much time.

> It seems to me that if I have correctly understood what happened in this
> case then 0, the default, really cannot ever work properly when you have
> enabled WAL archiving plus streaming.

Well, it's not like it'd work without WAL archiving either, though
that's perhaps more obviously true.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (25+ messages)  latest in thread

Message-ID: <20180813123050.GC3326@tamriel.snowman.net>
Permalink:  ../20180813123050.GC3326@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180813123050.GC3326@tamriel.snowman.net

 · 

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-general@postgresql.org
  Cc: sfrost@snowman.net, spam_from_pgsql_lists@chezphil.org, adrian.klaver@aklaver.com
  Subject: Re: Replication failure, slave requesting old segments
  In-Reply-To: <20180813123050.GC3326@tamriel.snowman.net>
  References: <2b671d4c-1504-9a38-3ad0-5dafe8fab92c@aklaver.com> <1534162725842@dmwebmail.dmwebmail.chezphil.org> <20180813123050.GC3326@tamriel.snowman.net>

* 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