Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9oTl-0003km-Kv for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 09:39:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g9oTh-0001C1-R4 for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 09:38:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9mPw-0001ZR-8Q for pgsql-general@lists.postgresql.org; Tue, 09 Oct 2018 07:26:56 +0000 Received: from mail7-213.sinamail.sina.com.cn ([202.108.7.213]) by magus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1g9mPp-00080X-LV for pgsql-general@postgresql.org; Tue, 09 Oct 2018 07:26:54 +0000 Received: from unknown (HELO t460p)([120.132.1.226]) by sina.com with ESMTP id 5BBC582D00000E45; Tue, 9 Oct 2018 15:26:38 +0800 (CST) X-Sender: wztdyl@sina.com X-Auth-ID: wztdyl@sina.com X-SMAIL-MID: 969850394550 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 15:26:35 +0800 In-Reply-To: <20181009035334.GF2137@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> 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 12:53 +0900, Michael Paquier wrote: > On Tue, Oct 09, 2018 at 11:45:50AM +0800, magodo wrote: > > 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)? > > If your archive_command is for example a simple cp (which it should > not > be by the way), and if you try to archive twice the same file, then > the > archive command would continuously fail and prevent existing WAL > segments to be archived. Segments are continuously created, and > pg_wal > grows in size. > -- > Michael 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. Magodo