pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 11:45:50 +0800
Message-ID: <4691e0cffc49fa1438de904ec5429b310d74c654.camel@sina.com> (raw)
In-Reply-To: <20181009024504.GB2137@paquier.xyz>
References: <6ac35bd51a0a4faad011fab162a2888a09ab2dd7.camel@sina.com>
	<20181008092451.GE2754@paquier.xyz>
	<55036790ed3c8c900d674bf90dfbdd65f6ab170f.camel@sina.com>
	<20181009024504.GB2137@paquier.xyz>


On Tue, 2018-10-09 at 11:45 +0900, Michael Paquier wrote:
> (Please do not forget to add the community mailing list in CC.)
> 
> On Tue, Oct 09, 2018 at 10:33:56AM +0800, magodo wrote:
> > Since the backup history aims to aid administrator to identify the
> > point from which wal archive should be kept and before which the
> > archive could be cleaned. It is very helpful in kinds of use cases.
> > 
> > Why not also create it when do basebackup on standby?
> 
> The backup_label file is equally helpful, and backup history files
> are
> not mandatory for backups.  One of the reasons behind why we cannot
> have
> those on standbys is that there is no actual way to ensure the
> uniqueness of this file, as two backups could be started in parallel
> with the same start location and the *same* file name.  If an archive
> command is not able to handle correctly the duplicates, you could
> bloat
> pg_wal.  And that's a real problem.
> --
> Michael

Oh, I almost forget backup_label.. Thank you for point it out!

Yet, I am still not so clear how does the bloat of pg_wal happen? Do
you mean pg_wal will be filled up by many .backup(s)?

Magodo






view thread (8+ messages)  latest in thread

Message-ID: <4691e0cffc49fa1438de904ec5429b310d74c654.camel@sina.com>
Permalink:  ../4691e0cffc49fa1438de904ec5429b310d74c654.camel@sina.com/
Also on:    postgresql.org/message-id/4691e0cffc49fa1438de904ec5429b310d74c654.camel@sina.com

 · 

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: wztdyl@sina.com, michael@paquier.xyz
  Subject: Re: pg9.6: no backup history file (*.backup) created on hot standby
  In-Reply-To: <4691e0cffc49fa1438de904ec5429b310d74c654.camel@sina.com>
  References: <6ac35bd51a0a4faad011fab162a2888a09ab2dd7.camel@sina.com> <20181008092451.GE2754@paquier.xyz> <55036790ed3c8c900d674bf90dfbdd65f6ab170f.camel@sina.com> <20181009024504.GB2137@paquier.xyz> <4691e0cffc49fa1438de904ec5429b310d74c654.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