Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9qkW-0002bN-GJ for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 12:04:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g9qkU-0008NM-KY for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 12:04:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9qRb-00066E-78 for pgsql-general@lists.postgresql.org; Tue, 09 Oct 2018 11:44:55 +0000 Received: from mail3-166.sinamail.sina.com.cn ([202.108.3.166]) by makus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1g9qRU-00038s-B1 for pgsql-general@postgresql.org; Tue, 09 Oct 2018 11:44:51 +0000 Received: from unknown (HELO t460p)([120.132.1.226]) by sina.com with ESMTP id 5BBC94A6000072A5; Tue, 9 Oct 2018 19:44:39 +0800 (CST) X-Sender: wztdyl@sina.com X-Auth-ID: wztdyl@sina.com X-SMAIL-MID: 641892395091 Message-ID: Subject: Re: pg9.6: no backup history file (*.backup) created on hot standby From: magodo To: Michael Paquier Cc: Postgres general Date: Tue, 09 Oct 2018 19:44:40 +0800 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> <20181009075541.GJ2137@paquier.xyz> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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