From: magodo <wztdyl@sina.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres general <pgsql-general@postgresql.org>
Subject: Re: pg9.6: no backup history file (*.backup) created on hot standby
Date: Tue, 09 Oct 2018 19:44:40 +0800
Message-ID: <a6ad394afbe864cf1af5f5d2c4fbfd10873b0095.camel@sina.com> (raw)
In-Reply-To: <20181009075541.GJ2137@paquier.xyz>
References: <6ac35bd51a0a4faad011fab162a2888a09ab2dd7.camel@sina.com>
<20181008092451.GE2754@paquier.xyz>
<55036790ed3c8c900d674bf90dfbdd65f6ab170f.camel@sina.com>
<20181009024504.GB2137@paquier.xyz>
<4691e0cffc49fa1438de904ec5429b310d74c654.camel@sina.com>
<20181009035334.GF2137@paquier.xyz>
<ad114a387770b8f1f9903a592a4246b6f4aa9dca.camel@sina.com>
<20181009075541.GJ2137@paquier.xyz>
On Tue, 2018-10-09 at 16:55 +0900, Michael Paquier wrote:
> On Tue, Oct 09, 2018 at 03:26:35PM +0800, magodo wrote:
> > Yes, but does this differ whether I'm archiving a general WAL or
> > archiving the backup history? I mean if user doesn't handle
> > duplicate
> > archive, then pg_wal will still be filled up when archiving WAL.
>
> A WAL segment has a unique name, and would be finished to be used
> once.
> The problem with backup history files on standbys is that the *same*
> file can could finish by being generated *multiple* times with base
> backups taken in parallel. That's a completely different story, and
> the
> window to those backup history files having the same name gets larger
> the more the window between two checkpoints is. That's a problem I
> studied a couple of months back.
> --
> Michael
I just realized that doing basebackup on standby have other different
behaviors than it on primary, for example, it will not switch wal on
begin or end.
So do you just mean if there is no wal switch on primary(suppose
currently on 0000000100000002), then each basebackup made on standby
will always generate a same named backup history(e.g.
0000000100000002.backup)?
---
Magodo
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: wztdyl@sina.com, michael@paquier.xyz
Subject: Re: pg9.6: no backup history file (*.backup) created on hot standby
In-Reply-To: <a6ad394afbe864cf1af5f5d2c4fbfd10873b0095.camel@sina.com>
References: <6ac35bd51a0a4faad011fab162a2888a09ab2dd7.camel@sina.com> <20181008092451.GE2754@paquier.xyz> <55036790ed3c8c900d674bf90dfbdd65f6ab170f.camel@sina.com> <20181009024504.GB2137@paquier.xyz> <4691e0cffc49fa1438de904ec5429b310d74c654.camel@sina.com> <20181009035334.GF2137@paquier.xyz> <ad114a387770b8f1f9903a592a4246b6f4aa9dca.camel@sina.com> <20181009075541.GJ2137@paquier.xyz> <a6ad394afbe864cf1af5f5d2c4fbfd10873b0095.camel@sina.com>
* 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