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 1g9mrx-0001Ou-L9 for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 07:55:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g9mrw-000780-6n for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 07:55:52 +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 1g9mrv-00077t-Ui for pgsql-general@lists.postgresql.org; Tue, 09 Oct 2018 07:55:51 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9mru-0000I9-1s for pgsql-general@postgresql.org; Tue, 09 Oct 2018 07:55:51 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3BD8021F47; Tue, 9 Oct 2018 03:55:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 09 Oct 2018 03:55:48 -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=ZD6k7erM6Rxgznck8e71x8DOZb2 IPnK1GS1RNogYyXc=; b=joyJzCyfuuqmLyPIHPJbZQ78WeTEbwDbUUh3vId/U2o j8a8l4aGihKrZtr2bII6rKd2YqQUvfAZNWXbgdSw9qDirpuJn5teegqCi/+fIewi wyD3O0M0oSwYlZGw+Xv7dTySf5nny5wPWwV3t9Q9mFi98/krx81GFpCsvrpXoK42 amKwIGvKJBclHrbkx8Kk9aQcnwBRGX41I7yfQGcgXR2XtlHfLsov3NeTRP6iUQ3O q3+O6yT32b00SUeZxj8zre+PKdqHAZBTq0mdKs/ZIhxsGb+qIHLzCMqdU1yMje0p hWdLi33+7lqhwOsH30T9W2+ppZ8U0UZFsJ9Mue62/iA== 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=fm1; bh=ZD6k7e rM6Rxgznck8e71x8DOZb2IPnK1GS1RNogYyXc=; b=ThZ4LuEDOSdQLoBjmsP/zC vp0w2CmYNH51ll2+wU5mDGyi5nQGv6d7WDjRwIKCcZyvkC54L6a2HhNAXE4z5M0y o/u+oRGURITeRzyyURrTWrGr1jeKmEvztRJ2oCUwym4wjvVi237h7xYqavSGtWvT q4lITy8x3Vn6e+0u5NJXX2BTurYGUydaVAQyIT1MXf3q6YR0tOKEAtSJubrGw8r8 nIv1ys65ThYl+/OAu8oKg4EIVPtpcIM9XczopmUxlAkO3fhlIZjosnVq95Rm1kDy RsX+3b1Eckl7nHXvAx+VgqlQ+Fly8XCezd1jZxIpM7bDAb0YW7JIjPfKXr1L5BIA == 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 DB608E455B; Tue, 9 Oct 2018 03:55:44 -0400 (EDT) Date: Tue, 9 Oct 2018 16:55:41 +0900 From: Michael Paquier To: magodo Cc: Postgres general Subject: Re: pg9.6: no backup history file (*.backup) created on hot standby Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1y6imfT/xHuCvpN0" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --1y6imfT/xHuCvpN0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --1y6imfT/xHuCvpN0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlu8Xv0ACgkQnvQgOdby QH0bfQ/+JhcFQZ0nILzCZiUiJPtjDdLRYDM2zZQrHzcfLyPQlifzywtBqqFV7EUM f0IGumLh4/FeCHFarlIZVVGdm2rqbXnxpjTlWg9Fsthzk0eEw7azQCRfhUxuXytZ BChrbNsOQMWu1BNgnmrJhZ0sAQ4XFgZ4kXGilZ0cXmHzeZvrn905a6kBeI1qqC8e hz9RdPqauEp9A9q05tcYcAGr2V9YsDCcBFc2haa/3Nrn0WXcWe9+IDdbLmZFMEYp ISLxWyiQERLrTmXXnlPjOPqnAkhJYsuMCae61UClLjWgoCYqAe+twWeiiPUTEfZv wSQ9ZdEuXGbHxYGXolUat/H1wgcw5emWjOqFwkJm2fyDrWjyv5+s1TZaowkNMQ66 4Bpfy+9tainnNDDj+xNIhL6NK+d/BkWlpaZ2HUrWVtsu5IqEz8akStXWlLywoDjg zTVQLOrkgf3gHyeEucuXWl+6zz7igpKjhlz2PXpUecMWgB53HlTSntiyEYO9tJcO yTP02Y6ECbYPs88POMC9g1bnaxvy5XD5lwbdcnMfda09sksptuEjGNkgpsUDt0Ga P6gWwGo+teYuRUFPVHpqAV4JOxVTNjy6IHz7mIo9AJJr+2UddbpxzaZM/kpg3Krl 0no7x/qmpOUPJgQlii6/LwZfTF4S48vIEwJ8kmn9QwQmhR7j794= =TqmQ -----END PGP SIGNATURE----- --1y6imfT/xHuCvpN0--