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 1g9i1U-0004N6-22 for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 02:45:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g9i1R-00084M-NZ for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 02:45:21 +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 1g9i1R-00084F-FQ for pgsql-general@lists.postgresql.org; Tue, 09 Oct 2018 02:45:21 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9i1J-0000Mk-6s for pgsql-general@postgresql.org; Tue, 09 Oct 2018 02:45:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 69A71C11; Mon, 8 Oct 2018 22:45:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 08 Oct 2018 22:45:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=BDZMhqwGAkm64+MR4VShz1z4KOD BCgS5OYFurvUsMUY=; b=mKi1VfSXFndLxyXducgoIw/bPx9atrqDiY224O8143Q jzfG6GectUUOVOxCxHOs7EXRRNJb4/5aFRUGSPRn2UL/edHY5rooYS0z/sHhs8up 7dlE5bo6YYEqXx4B3nDkaTSQhPNMPSZBN5pPlwsZgrr1pKwoj+u3njlal3W7ttK9 8Xv9HMqb1tgrFJnsFk4KT0mFmzmZrjejQRYGcK844z6SiC73/VhrdwhFVWCDASdl LrIY/EYWiGRBIVVSHaTDy/0XETLiIn6HUeneIZtBDIiK2A/lmlIkr0YKbDWnGFiW 6H/NK+axPfPf1O5VRFq8M1PN6C49Qk0qwgdMeZMGsiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=BDZMhq wGAkm64+MR4VShz1z4KODBCgS5OYFurvUsMUY=; b=vWsQMEHRKMgANPW1jWm4Y5 JpumZgdDd+fiARrNZcWfSchY8LRVs7FIHzgHCNloPlu28qSwIvjB5bPgRDFJUwT6 /yc/PDBMEHYTKJwqbG+9biFWuytoQIDM9pEKHUnjX4TaYFhBSNxxWnqio/oxDqSF YHo79ykWhrpvccEJJ8zjxKf7V4fygw/cWzrruf7dN5/UiBFybkQLXsM1KYd6+wCd PjqBcgF1hJ+DASzEUhTtVR+3ONAJBWo9+OlZGXuKCS7csR505KMlnQgJWt+SyS8k AesJUTY+8/6LQSu0Qz/DkL195Iweq6Ptsp+v+T0tJ4HPh1ZxmuF73mWKwtRcZ2/Q == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 26713E48BD; Mon, 8 Oct 2018 22:45:07 -0400 (EDT) Date: Tue, 9 Oct 2018 11:45:04 +0900 From: Michael Paquier To: magodo Cc: Postgres general Subject: Re: pg9.6: no backup history file (*.backup) created on hot standby Message-ID: <20181009024504.GB2137@paquier.xyz> References: <6ac35bd51a0a4faad011fab162a2888a09ab2dd7.camel@sina.com> <20181008092451.GE2754@paquier.xyz> <55036790ed3c8c900d674bf90dfbdd65f6ab170f.camel@sina.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kXdP64Ggrk/fb43R" Content-Disposition: inline In-Reply-To: <55036790ed3c8c900d674bf90dfbdd65f6ab170f.camel@sina.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --kXdP64Ggrk/fb43R Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable (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. >=20 > 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 --kXdP64Ggrk/fb43R Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlu8FjAACgkQnvQgOdby QH0hgxAAg3JWpYuMobaKYRsyAzmhz1kDNqBm3vCdyN0Fw042SpGKaQVIei1E2scP vh9IXixxDcHYMD8SVw4/wirGBjP/jK0JR+iYL1yZ5MZZ5IxcfXH8Rv6RSjAFrRxu x3fvEFOdpVHgCwfpNm80h+7GGe3wL6DpnActh0FIzX4rIJqTYVa4PCuEBHUwd/yG /1htixmf8ok/rDS4a65a5xOQrdCGxcF9qE3vUJKPGCYABU/qDWDkPMhCfaCgWocu 1A3MztOK/a3QVDeK9e/2U/604PzbpYZkYFqtSiCRVWW8mHNTPZducwjXVIssWwWN weKxZJ8sgtJ0L4rnViyzeaHUxLBI+zwMJq8EhbiQlu1D9AE6h7zz0KYnyPuXIdKX z19INpEcSTDUAjUDr+48nw8l2zNkquEvfxHYzjfzXQU/03bWe3dQv6RMo1TS9hoI tEQeQJLufraD62zyP7w066oGWhVtM2RZ390p1H6JHQzBORZxm3j7eTd5fI3pRTJR OFxOUjWAqsIUBtLhHs0gu6mDJFFK7xlFd+mRFt7UasRZaQicq3CYFIR8tTz4haVz XS0HUf7FcelLfzkyXI/6aFRvsNr+LILnz/JP+CPv+G8jjw4aWJjePvaCkzYZTUvk VWULEPEuywS7dtKI1JGM98CqJnKUWnTPnIcKZIOKLoKtsRj+zho= =XroF -----END PGP SIGNATURE----- --kXdP64Ggrk/fb43R--