Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jba02-0003Xd-0a for pgsql-general@arkaria.postgresql.org; Thu, 21 May 2020 01:27:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jba00-0003xz-Ky for pgsql-general@arkaria.postgresql.org; Thu, 21 May 2020 01:27:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbZzz-0003xs-MN for pgsql-general@lists.postgresql.org; Thu, 21 May 2020 01:27:52 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbZzs-0001Vq-RR for pgsql-general@postgresql.org; Thu, 21 May 2020 01:27:50 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 408E35C010B; Wed, 20 May 2020 21:27:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 20 May 2020 21:27:43 -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=fm1; bh=VTL7WPP4Vn7fxE6TG4mnw1I18AH OduvSIKdGe/BdVHY=; b=m8mso1CoRsKW1nhq3mHYpOaDJKFX9eZqfJefd/+Q4Vl IQU4hUInoyYWZ7FJG3GZMI8sdl38qEdVhnoyI5dXoBlnwRV2hsdqLR6RwkhbUN8g qu8Ll9BrvMKBLhWi23NgO642EuLRfg0Da6LgjhhrOVrxnnR32cwFTgnmvOoOAPiF 5k6FcWPTSyNus6CnTGKPAEh5euOpXZhfXeFaLSXjw1l3idvpBc+QJ7wyxkawwUfP YCc3ejfbLxt91lXE7Eu4Q1Fa4mq/uSCiheNYpKqTWQguky8hC8EK6tA1BRkNz3HH Bi5TMmjzlx89uBSMSkZZUNNlzbQWKpr6rwVpmO+6wZA== 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=fm2; bh=VTL7WP P4Vn7fxE6TG4mnw1I18AHOduvSIKdGe/BdVHY=; b=aTS1cm88oa869NYFjNbBBl 0I/Hc2wLm4BCAxsTUkBwMGJywyXCWfCb9px5aAHx6b9Hq/lYXmBvr8k95563s1VC 3124OP9q2Jegc6DfJ3I3EjMCASER/zoDHI5/RzyYlXYY8ZWjBC8SZ1/KnHtV++f6 6XNedAsI0J6LGilnhsvfOqiKr5qwzqFuy0pNNj03fTd3mcBFWhc2c7nK3KzoDbLd zjHdu3XGdmXw12yhwX68FLbEWRvX7UGXMn+xIoYEI3H7YcPb16vXH+EMFl6PzWHi bkmZ93iQ4n3MyUGKPvImLWi/5Suf5y/Jo53BKHARnpUKMOyMMleJlv6WCYOkB4vA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddutddggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 32129328005A; Wed, 20 May 2020 21:27:40 -0400 (EDT) Date: Thu, 21 May 2020 10:27:38 +0900 From: Michael Paquier To: Adrian Klaver Cc: Andrus , pgsql-general Subject: Re: How to recover from compressed wal archieve in windows Message-ID: <20200521012738.GI2355@paquier.xyz> References: <241F4C06123741D8BA0283C8690A5F12@dell2> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IJFRpmOek+ZRSQoz" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --IJFRpmOek+ZRSQoz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 20, 2020 at 11:36:09AM -0700, Adrian Klaver wrote: > The next problem is that I'm pretty sure a WAL file with *.gz extension will > not be able to be processed directly by the server. So you are going to have > to uncompress it at some point before it gets restored. The short answer to that question is no. The backend does not uncompress the segment file. What happens is that the restore command copies the file defined by %f to the location of %p where is gets renamed to RECOVERYXLOG, and we expect the restore command to drop a 16MB file in og_wal/. There is a check on the size, which would fail if the WAL segment is still compressed. This logic is in RestoreArchivedFile() in xlogarchive.c. -- Michael --IJFRpmOek+ZRSQoz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl7F2QoACgkQnvQgOdby QH1RCg/8DtTpADTzEmVyoxH0PaHNwOEQGVTYM4T441Gu7VT9XBKz8P3XJFp8qgXX RwwRVR2s879+PH3X0eUVKchqGK5d6an1xQqXdmh+bcTk8eRPBrh2sM9EmjFtRN/4 WoDLMvwHnjcP4YufNRE7tdQMyD9NKvvGW9J5TA5M59Kr8xrCc3dPN+lR+ZI3KXTK IeFHWLf+hIdZQ7uh7u9yKCad233Qaj1voLJyP7x8bj1NyYvJXbCBS7xAlpGhZ8WG RW37GG0MPrPooUtggYyRKknKVs92E33MR2Kpi9+VqRq41hN1mBHUaPwHfKBq+lCv BIsZw1NAcEeYHiVY1jTrl77RU332COOuS0NgsfuaOUazswo4uAoaB4Ux4043qgTn /WxQbkt7GSt6zwIz4vH0k/oUzJ7w8sT6sGiCdeeu1PQ1v5I2D3ivrX/pCrWbTRgE 8sCdEngx9ZHyYxgmMwwXRzPS2fJMIynvf7gUhIR71kEh2mUogGgze7CWMQfjM5vT Py2x88qvSJJR4E/+dfT/e89xZuYW1UC423VE1umk4cg7CDD84oauwpHZBY7pxfKI OGnl8roHDDsP5W1tI+PLvHgjRqR084Qtrhua723owC+LYuayhqdnltnTThXSX5+m lGi2NZupGxoNZ0LazE5h5naT2DYeGHKJ23tmX9ZHhkZNSidzSr0= =Dtb9 -----END PGP SIGNATURE----- --IJFRpmOek+ZRSQoz--